Hi Chris,
Try this :-
<?php echo $this->Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], array('escape'=>false)) ?>
Enjoy,
Marcus
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Sunday, September 30, 2012
image output tags
hi guys,... can anyone help please ....
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
I have a link in my view:
<?php echo $this->Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
and it is output in source :
<a href="/photos/index/admin"><img src="/photos/thumb/0-.jpg" alt="" /></a>
which gives me in a browser:
where I can't get a photo image,...
how do I fix this: < " > .... ???
thanks
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: PCRE has not been compiled with Unicode support on setup
http://lmgtfy.com/?q=PCRE+has+not+been+compiled+with+Unicode+support
On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote:
hi guys,... I have on 1.3 setup :--PCRE has not been compiled with Unicode supportwhere do I have to add -enable-unicode-properties
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Text color in a textfield
It's CSS thing. What have you tried so far? Show some code.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 30 Sep 2012, at 11:58:22, Numerion <Numerrion@gmail.com> wrote:
> So I've been trying to create several text fields on a page with black
> backrground and white-ish texts...but I met with a problem with the text
> color inside the textfield - it's white. And I can't find any means to
> change it. I tried googling it but everyone who had similar problem solved
> it in a way which didn't work for me.
>
> Halp? :<
>
>
>
> --
> View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 30 Sep 2012, at 11:58:22, Numerion <Numerrion@gmail.com> wrote:
> So I've been trying to create several text fields on a page with black
> backrground and white-ish texts...but I met with a problem with the text
> color inside the textfield - it's white. And I can't find any means to
> change it. I tried googling it but everyone who had similar problem solved
> it in a way which didn't work for me.
>
> Halp? :<
>
>
>
> --
> View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html
> Sent from the CakePHP mailing list archive at Nabble.com.
>
> --
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
ACL with custom tables
Hi Everyone,
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
I set up simple ACL in my site. I followed this tutorial http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
It's from the cookbook.
For some reason I have to name my tables admin_users and admin_user_roles. I can set ACOs and AROs and permissions but when I try to open a page. It still checks the User model. Instead of the Admin Users table. Any ideas on what config file to change or something so admin_users table will be checked??
Thanks a lot guys!
-- Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: FULL_BASE_URL
i was wrong,... it's all fine on this matter ,... it is reading FULL_BASE_URL
On Sunday, September 30, 2012 12:13:09 PM UTC-7, Chris wrote:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
On Sunday, September 30, 2012 12:13:09 PM UTC-7, Chris wrote:
hi guys,... I'm loosing FULL_BASE_URL ,... its not coming up in helper:--return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');what can I do,...?thanks
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: getting < , " instead < , " in output
hi Yasir,...
On Sunday, September 30, 2012 7:02:00 PM UTC-7, Yasir Arafat wrote: --
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
I have php tag in my views,....
<?php echo $this->Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
and I have this code in my photo_show helper:
function show($photo, $size, $params = array())
{
$name = array_key_exists('Photo', $photo) ? $photo['Photo']['name'] : '';
$s = '<img src="' . $this->show_path($photo, $size, $params) . '" alt="' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . '"';
$s .= array_key_exists('width', $params) ? ' width="' . $params['width'] . '"' : '';
$s .= array_key_exists('height', $params) ? ' height="' . $params['height'] . '"' : '';
$s .= array_key_exists('style', $params) ? ' style="' . $params['style'] . '"' : '';
$s .= array_key_exists('id', $params) ? ' id="' . $params['id'] . '"' : '';
$s .= ' />';
return $s;
}
and output on CAKE1.2 pre-Beta version works fine,... but now migration to CAKE1.3 and I'm getting this in my view:
from document souse:
<a href="/photos/index/admin"><img src="/photos/thumb/0-.jpg" alt="" /></a>
and in a browser:
???
getting frustrated ....
thanks in advance,...
chris
On Sunday, September 30, 2012 7:02:00 PM UTC-7, Yasir Arafat wrote:
May be you did not start PHP tag?On Mon, Oct 1, 2012 at 2:51 AM, Chris <chri...@yahoo.com> wrote:
hi guys,... I'm getting getting < , " instead < , " in output (views) when reading from helper,... e.g.--$s = '<img src="' . $this->show_path($photo, $size, $params) . '" alt="' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . '"';
can some one tell me what's wrong with it,...??
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
--Thanks & Regards.
------------------------------------------------------------ ------------------------------ ------------------------------ -----
Yasir Arafat (Hasib)Deputy Project Manager, Software Solutions
Grameen Solutions
Contact Information:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: getting < , " instead < , " in output
May be you did not start PHP tag?
--
-- On Mon, Oct 1, 2012 at 2:51 AM, Chris <chris69m@yahoo.com> wrote:
hi guys,... I'm getting getting < , " instead < , " in output (views) when reading from helper,... e.g.--$s = '<img src="' . $this->show_path($photo, $size, $params) . '" alt="' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . '"';
can some one tell me what's wrong with it,...??
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Thanks & Regards.
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
Deputy Project Manager, Software Solutions
Grameen Solutions
Contact Information:
Grameen Solutions
Contact Information:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: FULL_BASE_URL
I think it may help you
http://arafats.info/cakephp-url/
--
-- http://arafats.info/cakephp-url/
On Mon, Oct 1, 2012 at 1:13 AM, Chris <chris69m@yahoo.com> wrote:
hi guys,... I'm loosing FULL_BASE_URL ,... its not coming up in helper:return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');what can I do,...?thanks--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Thanks & Regards.
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
Deputy Project Manager, Software Solutions
Grameen Solutions
Contact Information:
Grameen Solutions
Contact Information:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Should this be a plugin?
I am working on some code (2 controllers + 2 models) that track calendar
events or shows and locations.
I have 2 projects this might work in, but only about 50-60% would be common.
Should I just not worry about a plugin to share common code?
If I do a plugin for the 50% that is common, how should I build the
controller / models that extend the plugin controller / models?
or is there a better way?
Any suggestions will be appreciated.
Thanks,
bill
View this message in context: Should this be a plugin?
Sent from the CakePHP mailing list archive at Nabble.com.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
events or shows and locations.
I have 2 projects this might work in, but only about 50-60% would be common.
Should I just not worry about a plugin to share common code?
If I do a plugin for the 50% that is common, how should I build the
controller / models that extend the plugin controller / models?
or is there a better way?
Any suggestions will be appreciated.
Thanks,
bill
View this message in context: Should this be a plugin?
Sent from the CakePHP mailing list archive at Nabble.com.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: CakePHP 1.3 and AMFPHP
I migrated the cakephp 1.3 with amfphp to cakephp 2.0, seems to work. I'm willing to make it available on github if there is any interest
On Saturday, April 9, 2011 10:45:59 PM UTC-7, R0ckET wrote:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
On Saturday, April 9, 2011 10:45:59 PM UTC-7, R0ckET wrote:
hello, someone has used AMFPHP with cakephp 1.3?--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: PCRE has not been compiled with Unicode support on setup
Anyone,... :(
On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote:
hi guys,... I have on 1.3 setup :--PCRE has not been compiled with Unicode supportwhere do I have to add -enable-unicode-properties
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
PCRE has not been compiled with Unicode support on setup
hi guys,... I have on 1.3 setup :
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
PCRE has not been compiled with Unicode support
where do I have to add -enable-unicode-properties
-- Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
getting < , " instead < , " in output
hi guys,... I'm getting getting < , " instead < , " in output (views) when reading from helper,... e.g.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
$s = '<img src="' . $this->show_path($photo, $size, $params) . '" alt="' . (array_key_exists('alt', $params) ? $params['alt'] : $name) . '"';
can some one tell me what's wrong with it,...??
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
FULL_BASE_URL
hi guys,... I'm loosing FULL_BASE_URL ,... its not coming up in helper:
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');
what can I do,...?
thanks
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
okay, maybe you need to put this content down here into /app_helper.php and call it from the view like: <?php echo $this->Html->show_path(); ?>
--
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
function show_path($photo, $size, $params = array())
{
if(empty($photo))
{
return '';
}
else
{
$id = 0;
$secret = '';
if(array_key_exists('Photo', $photo))
{
$id = $photo['Photo']['id'];
$secret = $photo['Photo']['secret'];
}
elseif(array_key_exists('User', $photo))
{
$id = $photo['User']['photo_id'];
$secret = $photo['User']['photo_secret'];
}
return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');
}
to
2012/9/30 Chris <chris69m@yahoo.com>
hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see <img src="/photos/thumb/0-.jpg" alt="" />return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');}thanks
On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote:i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :)
--Lep pozdrav, Tilen Majerle
2012/9/30 Ivan Rimac <ivn...@gmail.com><?php echo $this->Html->link($this->photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>maybe you are missing $this--2012/9/30 Chris <chri...@yahoo.com>
hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...now I'm trying to migrate to 1.3 and I can't bring it up in a view:<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>what am I doing wrong...???thanksTo post to this group, send email to cake...@googlegroups.com.--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com.Ivan Rimacmail: ivn...@gmail.com--To post to this group, send email to cake...@googlegroups.com.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Ivan Rimac
mail: ivnrmc@gmail.com
tel: +385 95 555 99 66
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
hi MaJerle,... now I'm reading helper ,... BUT,... can't read FULL_BASE_URL ,... in a browser I see <img src="/photos/thumb/0-.jpg" alt="" />
On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote: --
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');
}
thanks
On Sunday, September 30, 2012 10:22:21 AM UTC-7, MaJerle.Eu wrote:
i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :)
--Lep pozdrav, Tilen Majerle
2012/9/30 Ivan Rimac <ivn...@gmail.com><?php echo $this->Html->link($this->photoShow->thumb( $user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>maybe you are missing $this--2012/9/30 Chris <chri...@yahoo.com>
hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...now I'm trying to migrate to 1.3 and I can't bring it up in a view:<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> what am I doing wrong...???thanks--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
Ivan Rimacmail: ivn...@gmail.comtel: +385 95 555 99 66
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
hi Ivan,... thank you for your reply
On Sunday, September 30, 2012 10:07:46 AM UTC-7, ivnrmc wrote: --
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
now I'm reading photo_show helper:
<?php echo $this->Html->link($this->PhotoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
But,...
can nor read FULL_BASE_URL from helper
<?php
/*
* PhotoShow helper
*/
class PhotoShowHelper extends AppHelper
{
function show_path($photo, $size, $params = array())
{
if(empty($photo))
{
return '';
}
else
{
$id = 0;
$secret = '';
if(array_key_exists('Photo', $photo))
{
$id = $photo['Photo']['id'];
$secret = $photo['Photo']['secret'];
}
elseif(array_key_exists('User', $photo))
{
$id = $photo['User']['photo_id'];
$secret = $photo['User']['photo_secret'];
}
return (array_key_exists('full', $params) ? FULL_BASE_URL : '') . $this->webroot . 'photos/' . $size . '/' . $id . '-' . $secret . '.jpg' . (array_key_exists('updated', $_GET) ? '?' . time() : '');
}
}
On Sunday, September 30, 2012 10:07:46 AM UTC-7, ivnrmc wrote:
<?php echo $this->Html->link($this->photoShow->thumb( $user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>maybe you are missing $this2012/9/30 Chris <chri...@yahoo.com>hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...now I'm trying to migrate to 1.3 and I can't bring it up in a view:<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?> what am I doing wrong...???thanks--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com .
Visit this group at http://groups.google.com/group/cake-php?hl=en .
--Ivan Rimacmail: ivn...@gmail.comtel: +385 95 555 99 66
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
i think it should be $this->PhotoShow or $PhotoShow..i'm not sure :)
--
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Lep pozdrav, Tilen Majerle
2012/9/30 Ivan Rimac <ivnrmc@gmail.com>
<?php echo $this->Html->link($this->photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>maybe you are missing $this--2012/9/30 Chris <chris69m@yahoo.com>
hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...now I'm trying to migrate to 1.3 and I can't bring it up in a view:<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>what am I doing wrong...???thanks--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Ivan Rimacmail: ivnrmc@gmail.comtel: +385 95 555 99 66
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: photo_show.php helper
<?php echo $this->Html->link($this->photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
--
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
maybe you are missing $this
2012/9/30 Chris <chris69m@yahoo.com>
hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...now I'm trying to migrate to 1.3 and I can't bring it up in a view:<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>what am I doing wrong...???thanks--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Ivan Rimac
mail: ivnrmc@gmail.com
tel: +385 95 555 99 66
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: SQL Error: 1064: You have an error in your SQL syntax;
I found a solution,... if anyone have same problem with generateList,...
On Friday, September 28, 2012 8:55:52 PM UTC-7, Chris wrote: --
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
put this in your app_model.php
function generateList ($cond=null,$order=null,$limit=null,$key=null,$val=null) {
return $this->find("list",array(
'conditions' => $cond,
'order' => $order,
'limit' => $limit,
'fields' => array(str_replace('{n}.','',$key), str_replace('{n}.','',$val))
));
}
On Friday, September 28, 2012 8:55:52 PM UTC-7, Chris wrote:
I have a function which works on 1.2 pre-Beta version,... but not working on 1.3 CAKEcan anyone tells me whats wrong with this,... or what am I doing wrong,... THANKSSQL Error: 1064: You have an error in your SQL syntax;if($this->is_user())$is_friend = in_array($this->user['id'], $this->Friend->myFriends($user['User']['id'])); else$is_friend = false;if($user['User']['privacy'] == array_search('friend', Configure::read('Site.privacy'))) {if($this->user['id'] != $user['User']['id'] && !$is_friend){$this->flash('error', ucfirst('this profile is only viewable by owner\'s friends'));$this->redirect('/send_request/' . $user['User']['username']); }}elseif($user['User']['privacy'] == array_search('private', Configure::read('Site.privacy' ))) {if($this->user['id'] != $user['User']['id']){$this->flash('error', ucfirst('this profile is only viewable by its owner'));$this->redirect('/owner/' . $user['User']['username']);}}$this->set_title(ucfirst(i18n::translate('info')) . ' : ' . $user['User']['firstname'] . ' ' . $user['User']['lastname']); $this->set('user_obj', $user);and this is my Friend model:<?phpclass Friend extends AppModel {var $name = 'Friend';var $validate = array('user_id' => array('rule' => 'notEmpty','message' => 'Please enter a valid user',),'friend_id' => array('rule' => 'notEmpty','message' => 'Please enter a valid friend',),);var $belongsTo = array('User' => array('foreignKey' => 'friend_id'));function myFriends($id = null){$friends_ids = $this->generateList(array('Friend.user_id' => $id), array('Friend.friend_id' => 'ASC'), null, '{n}.Friend.friend_id', '{n}.Friend.friend_id'); return is_array($friends_ids) ? $friends_ids : array();}function afterDelete(){}}?>
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
photo_show.php helper
hi guys,.... I have a photo_show helper which works on 1.2 pre Beta version,...
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
now I'm trying to migrate to 1.3 and I can't bring it up in a view:
<?php echo $html->link($photoShow->thumb($user_obj), '/photos/index/' . $user_obj['User']['username'], false, false, false) ?>
what am I doing wrong...???
thanks
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: I'd like the Session to timeout on browser exit, is this all that's needed?
If you have a page open in a "tab" and then navigate away to other "tabs" for a while, is that equivalent to closing the browser on that page?
On Sunday, September 30, 2012 12:08:40 PM UTC-4, d6games wrote:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
On Sunday, September 30, 2012 12:08:40 PM UTC-4, d6games wrote:
In Config/core.php...--
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => '0'
));
Do I have to do anything else for my Session variables to stay alive until the user closes the browser? I ask if I'm missing a step because is seems like the Session is randomly clearing.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
I'd like the Session to timeout on browser exit, is this all that's needed?
In Config/core.php...
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => '0'
));
Do I have to do anything else for my Session variables to stay alive until the user closes the browser? I ask if I'm missing a step because is seems like the Session is randomly clearing.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Configure::write('Session', array(
'defaults' => 'php',
'cookieTimeout' => '0'
));
Do I have to do anything else for my Session variables to stay alive until the user closes the browser? I ask if I'm missing a step because is seems like the Session is randomly clearing.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Accessing extra fiends on many to many relationship table
Do you see your recursive on controller?
http://arafats.info/what-is-cakephp-recursive/
--
-- http://arafats.info/what-is-cakephp-recursive/
On Sun, Sep 30, 2012 at 8:13 AM, Jonathan Sundquist <jsundquist@gmail.com> wrote:
If you need access to more data with in the joining table you will not be able to use a habtm model. You will need to change it into a has many model.
- "The cold winds are rising"
On Sep 29, 2012 9:06 PM, "gosukiwi" <fedekiller@gmail.com> wrote:--This is what I've got, I have a table named Users, and a table named Lessons, users can give lessons, and the can also suscribe to other user's lessons.So my schema is something like thisusers tableid | username1 | mikelessons tableid | name | teacher_id1 | ... | 1So my users_lessons table looks something like thisuser_id | lesson_id | confirmed1 | 1 | false2 | 1 | true1 | 2 | falseSo far I can map all the users from a lesson, and all the lessons from a user, but given a lesson, i cannot get the status of each user signed up to that lesson, how can I do that?My Lesson model looks something like this--public $hasAndBelongsToMany = array('Students' =>array('className' => 'User','joinTable' => 'users_lessons','foreignKey' => 'lesson_id','associationForeignKey' => 'user_id','unique' => true,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','finderQuery' => '','deleteQuery' => '','insertQuery' => ''));
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
--
Thanks & Regards.
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
-----------------------------------------------------------------------------------------------------------------------------
Yasir Arafat (Hasib)
Deputy Project Manager, Software Solutions
Grameen Solutions
Contact Information:
Grameen Solutions
Contact Information:
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: Themes
That works, but currently, is not the solution.. I'll explain.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
I tried:
1. app/View/Themed/corporate/webroot/css/main.css
No work
then I tried
2. app/Webroot/theme/corporate/css/main.css
Worked.
The #1 solution should have worked, I realize that now - I built an app from scratch to test.
So. Something in my route, or appcontroller is breaking the full functionality of themes.
I am going to rebuild the application by dragging over each component and testing the themes as I go along to find out what is breaking the theme.
If I find the culprit, i'll post it.
Thanks.
On Sat, Sep 29, 2012 at 11:03 AM, lowpass <zijn.digital@gmail.com> wrote:
The file should be at:
app/View/Themed/corporate/webroot/css/main.css
Is that the case?
> --
On Sat, Sep 29, 2012 at 11:10 AM, hill180 <hill180@gmail.com> wrote:
> For the first time, I have to use themes in a project.
>
> I am using Cakephp 2.1
>
> In the before filter of the app controller I have the following:
>
> $this->theme = 'corporate';
>
> I have the views under
>
> app/view/themed/corporate/layout/default.ctp
>
> This is working fine..
>
> My problem is the webroot.
>
> I used
>
> //main.css is under webroot/themed/corporate/css/main.css
> <?php echo $this->Html->css('main'); ?>
>
>
> The page is rendered with:
>
> <link rel="stylesheet" type="text/css" href="/css/main.css" /> //file not
> found
>
> I can manually put in the link
>
> <link href="<?php echo $this->webroot; ?>themed/corporate/css/main.css"
> rel="stylesheet" type="text/css" />
> becomes
> <link href="/themed/corporate/css/main.css" rel="stylesheet" type="text/css"
> /> //good
>
>
>
> I thought when I used the HTML helper it was supposed to properly identify
> the theme and update the link accordingly.
>
> Am I wrong in that assumption?
>
> Thanks!
>
>
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Text color in a textfield
So I've been trying to create several text fields on a page with black
backrground and white-ish texts...but I met with a problem with the text
color inside the textfield - it's white. And I can't find any means to
change it. I tried googling it but everyone who had similar problem solved
it in a way which didn't work for me.
Halp? :<
--
View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
backrground and white-ish texts...but I met with a problem with the text
color inside the textfield - it's white. And I can't find any means to
change it. I tried googling it but everyone who had similar problem solved
it in a way which didn't work for me.
Halp? :<
--
View this message in context: http://cakephp.1045679.n5.nabble.com/Text-color-in-a-textfield-tp5711455.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Events system wildcard
Is possible to bind event handlers as wildcards?
For example, the docs shows "Model.Name.eventName". I want to perform it at "Model.*.eventName". Is that possible?
-- Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Saturday, September 29, 2012
Re: Accessing extra fiends on many to many relationship table
If you need access to more data with in the joining table you will not be able to use a habtm model. You will need to change it into a has many model.
- "The cold winds are rising"
On Sep 29, 2012 9:06 PM, "gosukiwi" <fedekiller@gmail.com> wrote:
-- This is what I've got, I have a table named Users, and a table named Lessons, users can give lessons, and the can also suscribe to other user's lessons.So my schema is something like thisusers tableid | username1 | mikelessons tableid | name | teacher_id1 | ... | 1So my users_lessons table looks something like thisuser_id | lesson_id | confirmed1 | 1 | false2 | 1 | true1 | 2 | falseSo far I can map all the users from a lesson, and all the lessons from a user, but given a lesson, i cannot get the status of each user signed up to that lesson, how can I do that?My Lesson model looks something like this--public $hasAndBelongsToMany = array('Students' =>array('className' => 'User','joinTable' => 'users_lessons','foreignKey' => 'lesson_id','associationForeignKey' => 'user_id','unique' => true,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','finderQuery' => '','deleteQuery' => '','insertQuery' => ''));
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Accessing extra fiends on many to many relationship table
This is what I've got, I have a table named Users, and a table named Lessons, users can give lessons, and the can also suscribe to other user's lessons.
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
So my schema is something like this
users table
id | username
1 | mike
lessons table
id | name | teacher_id
1 | ... | 1
So my users_lessons table looks something like this
user_id | lesson_id | confirmed
1 | 1 | false
2 | 1 | true
1 | 2 | false
So far I can map all the users from a lesson, and all the lessons from a user, but given a lesson, i cannot get the status of each user signed up to that lesson, how can I do that?
My Lesson model looks something like this
--public $hasAndBelongsToMany = array('Students' =>array('className' => 'User','joinTable' => 'users_lessons','foreignKey' => 'lesson_id','associationForeignKey' => 'user_id','unique' => true,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','finderQuery' => '','deleteQuery' => '','insertQuery' => ''));
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Subscribe to:
Posts (Atom)