you can do this...
i think that is that what you want
{{{

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

}}}
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/1/26 raymond <[email protected]>

> How are you, everyone.
> I tried to get relative theme path and googled to find following code:
>
> <?php echo App::themePath('my_theme'); ?>
>
> But this code returns physical full path of the theme, not relative
> one.
> How can I get the relative path of the theme?
>
> Kind regards.
>
> --
> 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
> [email protected]<cake-php%[email protected]>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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to