Home » Interview Question » Cake Php » What is the default extension of view files in cakephp?can we change view file extension in cakephp?

What is the default extension of view files in cakephp?can we change view file extension in cakephp?

Change view file extension in cakephp

default extension of view files in cakephp is '.ctp'.
yes we can change over view file extension $ext = '.newext'; for a specific action, all action of a controller and for all application view files.If you want to change it for particular controller then add it into that controller only.You can also change it for the specific action of the controller by putting it in that action of controller.

if you want to change extension for all view file(all controller and there action) then you can specifay in your AppContoller PATH

For all application controller and all their action

For specific controller and all their action

For specific action action

, , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">