Top Menu

 How can direct import controller function in ctp file.

 Some Time we need to direct  import controller function in ctp file then given below function is very use full.

You can try it 
Firstly create method on controller file

$this->requestAction(‘/ControllerName/MethodName/);

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Close