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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -