in my project I’m using zend to handle routing. Atm we’ve got routing rules which looks like this:
array(
‘match’ => ‘page’,
‘params’ => array(‘page’, ‘idConfiguration’),
‘controller’ => ‘controler1’,
‘action’ => ‘action1’
)
So we access this action by: http://base_url/page/1/1223324 for example.
Is there a simple solution to create rules so i can determine which action is called based on number of params?
I’d like it to look the following way:
http://base_url/ – action 0
http://base_url/pageNumber – action 1
http://base_url/pageNumber/idConfiguration – action 2
http://base_url/pageNumber/idConfiguration/someotherparam – action 3
Thank you in advance for help
Ini-based solution (hope I understand what you want):