cakephp get realpath of view and layout -
how can retrieve absolute path of view , layout file in cakephp action. cant find useful method or property in
// in action var_dump($this); thank
desire out put is
/home/sweb/www/cakeapp/app/view/layout/mylayout.ctp /home/sweb/www/cakeapp/app/view/mycntl/myaction.ctp
i use create full path.
app . 'view' . ds . 'layout' . ds . $this->layout which output you,
string '/users/david/sites/examplesite/app/view/layout/default' (length=56)
in order view, i'd use
app . 'view' . ds . $this->modelclass . ds . $this->view
Comments
Post a Comment