CakePHP XML View File

I would like to install the CakePHP framework to enable rendering of the page when the view file does not exist. I have all the definition set in the layout and you don't need any extra empty files.

+2


source to share


2 answers


You can use a controller property autoRender

.



function beforeRender() {
  $this->autoRender = FALSE;
}

      

+2


source


Yeah ... $this->render(false);



-2


source







All Articles