Hi Sergei,

> And a corresponding function js($site)
> But $site variable never passed to the function.
Please try this...

Router::connect(
    '/script/:site',
    array(
        'controller' => 'projects',
        'action' => 'js'),
    array(
        'pass'=>array('site'),
        'site'=>'[a-z0-9]+'
    )
);

and look at

function js($site) {
    debug( $this->params );
    ...

Hope that helps
RoVo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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