Google News
logo
CakePHP - Interview Questions
What is the default extension of view files? How can you change it?
.ctp is the default extension of the view file. You can change default extension to write public $ext = '.yourextension' in AppController. If you want to change it for a particular controller, then add it to that particular Controller only.
 
You can also change it for the specific action of the Controller by putting it in that action only.
Advertisement