CakePHP - How to get public path to application root -
i'm looking constant or variable provide public path application root.
i have got far full_base_url
gives me http://www.example.com
have added problem of application being in sub directory (e.g. http://www.example.com/myapp/
).
is there way path http://www.example.com/myapp/
in controller?
$this->html->url( '/', true );
in general should generate links function, see http://book.cakephp.org/view/1448/url
Comments
Post a Comment