Hi Rishi,
Sorry for this delay reply. I didn't meant to use my link as it is. It
was for referral. I'll explain it and try to answer your post.
the last argument is a variable used for backtracking of url in
Zend_Router_Route_Regex which is as an example is '%s'; Where as for your
solution it would be %s/%s%s which would become something like
www.yoursite.com/en/help/yahoo/2011/222 OR
www.yoursite.com/en/yahoo/zend/222.
Now you would be asking what does %s states. As you said is it a string?
Answer: Yes.
Now how does this works in Zend_Router_Route_Regex?
The first %s will get mapped with your sitecode,
the second will get mapped with your help_sef_url which could be empty or
your url given values.,
the third will get mapped with your sef_url which could be anything;
the usage of %s is there because your url structure is alpha-numeric.
I suggest you should go through the manual example as well.
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex
Hope this helps.
Regards,
Shah Mubashir Hussain.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Questions-about-Zend-Controller-Router-Route-mandatory-arguments-tp3694918p3709102.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]