views:

268

answers:

2

I would like to set CakePHP framework to allow page rendering when view file does not exist. I have all the definition set on layout and do not need extra empty files.

Thanks!

A: 

A yes... $this->render(false);

xpepermint
obviously you are trying to gain points but it is not the correct way
RioTera
+1  A: 

You can use controller property autoRender.

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

Kielanas
You can also put that into individual Controller methods to do it on an action-by-action basis.
mgroves