I use the CakePHP framework and I want to have multiple templates in my project.
Is there any way for implementation of multiple templates in CakePHP?
For example, an admin can choose first the or second template in the backend and users can use the same template. (Like in the Joomla backend). If there is any way, how can I implement this?
Just giving you basic idea about how you can do that.
In app_controller try below code.
And inside other controller file which extends app_controller add you must have code as below.
You can also overwrite
$this->layoutto every controller action.