Different layouts in cakephp

Asked

Viewed 148 times

0

My system when the user type the url it will fall on the login screen that has its own layout, after the login the user is redirected to an administration screen style Adminlte, however I do not know how to separate these two layouts without my code is with gambiarra. A solution I thought would be to configure the file Routes however I do not know how to do it.

  • Which version of cakephp are you using?

  • 1

    I’m using Cakephp 3

1 answer

0


by default all actions come with the layout/default.ctp set, you must create one more layout and in the action you will have different layout you arrow: $this->layout = 'login';

Browser other questions tagged

You are not signed in. Login or sign up in order to post.