Hi,
I have another routing problem if anyone would be so kind,
/* Parameters */
Router::connectNamed(array('download', 'payment'));
/* Simulations */
Router::connect('/simulations', array('controller' => 'simulations',
'action' => 'index'));
Router::connect('/simulations/', array('controller' => 'simulations',
'action' => 'index'));
Router::connect('/simulations/index', array('controller' =>
'simulations', 'action' => 'index'));
Router::connect('/simulations/prepare', array('controller' =>
'simulations', 'action' => 'prepare'));
Router::connect('/simulations/get/', array('controller' =>
'simulations', 'action' => 'get'));
Router::connect('/simulations/view/*', array('controller' =>
'simulations', 'action' => 'view'));
Router::connect('/simulations/*', array('controller' =>
'simulations', 'action' => 'view'));
Basically I wanted to set it so that visiting /simulations/a-
simulation would do /simulations/view/a-simulation.
It works for everything expect for the get action.
Basically when I enter a url such as, /simulations/get/download:123/
payment:123 I want it to go to /simulations/get/download:123/payment:
123 but the router is sending me to /simulations/view/get/download:123/
payment:123
How can I fix this, it works fine for other actions, index and some
prefixed actions (CRUD), I can only assume its because I'm using named
parameters which is why I added the connectNamed bit (as per the cook
book).
Anyway thanks in advance,
Felix
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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