What is the default extension of view files? How we can change it?

Default extension of view file is ".ctp".

We can change default extension to write public $ext = '.yourextension' in AppController. If you want to change it for particular controller then please add it into that particular controller only. You can also change it for the specific action of the controller by putting it in that action only.

Suggest An Answer

No suggestions avaliable!

Latest post from CakePHP interview questions

Ask Question