In Cakephp version 2.4 in the controller, before rendering, do I need to check the view file or not? then decide to do. For example, I need code as shown below.
if( template_exist( $template_name ) ) { $this->render( $template_name ); } else { $this->render( $default_template ); }
I am currently using try / catch, but I am looking for a better way. I need a template_exist function. Can anyone help?
Mohamad ali
source share