AD7six wrote:

On Jan 3, 1:34 pm, "FrenchEscapes" <[EMAIL PROTECTED]> wrote:
I am usingadminrouting, is it possible to set a defaultlayoutfor
all actions called through /admin, or does it have to be specified in
everyadmincontroller function with $this->layout.

Thank You in advance

Duncan

Try this:
http://groups-beta.google.com/group/cake-php/search?group=cake-php&q=admin+global+layout&qt_g=Search+this+group

When I try to find for this a solution I find better way to put to every controller:

$this->layout = "admin" //or something like this.

An other thig, what I find this is it:

$Route->connect('/admin', array('controller' => 'administrators', 'action' => 'index'))

And the controller for it:


<?php
class AdministratorsController extends AppController {

    var $name = 'Administrators';
    var $uses = array();
    var $layout = "admin";
    function index() {
        //echo "nothing or what";
// in here you can check the autentication any any other usefull // things :)
    }
}
?>



--
Ámon Tamás
http://linkfelho.amon.hu


--~--~---------~--~----~------------~-------~--~----~
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