Thursday, January 27, 2011

Re: How to get relative theme path?

u need just 'themed/my_theme/' because if u use it with HtmlHelper, it should work correctly :D

--
Lep pozdrav, Tilen Majerle



2011/1/26 raymond <raymond986@gmail.com>
Thanks for your fast reply, Tilen.
But it just print "themed/my_theme/".
If my app is located on http://localhost/myprj
then I want to get a path like "myprj/themed/my_theme/"

Any suggestion?
Regards, Raymond.

> $themePath = str_replace(VIEWS, '', App::themePath('my_theme'));
> print $themePath //it will print "themed/my_theme/

--
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: