Any idea how global set layout for admin method and for other method
other layout?

Now its :
------------------------------
Controller.....

function admin_index(){
   $this->layout = 'admin';
......
}

function index(){
   $this->layout = 'public';
......
}

Its very boring set in all admin methods.


Maybe resolution is in set beforeFilter in app_model but i dont know
--any condition--

function beforeFilter()
{
  if(--any condition--)
  {
    $this->layout = 'admin';
  }else
  {
    $this->layout = 'public';
  }
}

Help please..


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to