Well, if you just want to use routes, how about:

$Route->connect('/site1/:controller/:action/*', array('site_config' =>
'site1'));
$Route->connect('/site2/:controller/:action/*', array('site_config' =>
'site2'));

And then in your app/app_controller.php you could have a beforeFilter
to set the appropriate configuration based on which site is being
requested.

function beforeFilter()
{
        if ( isset($this->params['site_config']) ){
                switch($this->params['site_config']){
                        case "site1":
                        case "site2":
                }
        }
}


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

Reply via email to