CakePHP pages_controller always uses default layout -


i have static page want serve made .ctp in /views/pages/ directory. problem it's using default layout not want use. tried making own pages_controller , passing $layout var not work. there has way tell /pages/ use layout.ctp. no?

few things check

  • make custom pages_controller.php
  • define variable $layout , set layout want.
  • make sure layout exists in views/layout/

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -