CakePHP admin layout for admin routing


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function beforeFilter()
  2. {
  3. if(isset($this->params["prefix"]) && $this->params["prefix"] == "admin")
  4. $this->layout = "admin";
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.