Zend routes (optional parameter)
Posted: Fri Jul 17, 2009 3:09 pm
I have the following route:
I'd like the last parameter to be optional, how is this done in Zend?
Is the better way of handling this just specifying another route with this third parameter?
Code: Select all
<search2>
<route>/search/business/:rolodex/:keywords</route>
<defaults>
<controller>search</controller>
<action>business</action>
</defaults>
</search2>Code: Select all
/search/business/:rolodex/:keywords/?page