routes - Cakephp & mutliple CSS designs in one controller -


I am running cake 2 and have setup like a site:

  / internal / All the above pages use the controller and I use routing to add the page after those URLs. Such as  
  router :: connect ('/ company1 / test', array ('controller' => gt; trials '', 'verb' => 'index'));   

I am not using the theme I have found the problem, she says, for example, I have completely different CSS layouts for Company 1 / Minnesis (Header and All) (The theme I think?)

What is the best way to achieve this? Themes?

According to the argument given in your controller's method, you can change your layout using the following syntax Are:

  $ this-> Layout = 'layout1';   

Build your various layouts with different CSS. Hope this will work for you.

Comments