Saturday, January 29, 2011

Re: How to get relative theme path?

with $this->set(); i think will be the best...
--
Lep pozdrav, Tilen Majerle



2011/1/28 raymond <raymond986@gmail.com>
thanks. I guess yes, it should work.
Now can I ask a kind of different question to you?
How can I share the constant from controller to view?
In app_controller class, I put the variable, e.g, var $path = 'themed/
mytheme/' so in any controller classes, I can simply refer them by,
$this->path,
but what about in View side?
Can not I use this value View side?
Look forward to you reply, Raymond.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: