Well... making progress but still not there.
Right now I've got:
Router::connect(
'/*',
array(
'controller' => 'nodes',
'action' => 'view',
),
array('*' => '(!users|products)')
This half works - the pagination is fixed and something like /
seascapes/summer-seascapes maps to nodes/view - so that is great. And
I get the following params (which is what I want / expect)
Array
(
[pass] => Array
(
[0] => seascapes
[1] => summer-seascapes
)
[named] => Array
(
)
[plugin] =>
[controller] => nodes
[action] => view
[form] => Array
(
)
[url] => Array
(
[url] => seascapes/summer-seascapes
)
[isAjax] =>
)
BUT if I send /products/options/147 doesn't map to products_controller
at all it is still sent to the nodes_controller... so my problem I
guess is what do I use instead of '*' in the reg ex array?
I also tried variations using parameters - but they basically work the
wrong way round so products/options/47 works fine but /seascapes does
not e.g.
Router::connect(
'/:my',
array(
'controller' => 'nodes',
'action' => 'view',
),
array('pass' => 'my', 'my' => '!(users|products)')
);
Cheers
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---