somebody? 2010/8/13 Aurimas Likas <[email protected]>
> I am trying to switch from .htaccess rules and static link in my view > scripts to using Zend routes and url view helper (have no experience with > them, but read the manual) and have a question: > > How can i have "www.example.com/category/" mapped to categoryAction and at > the same time "www.example.com/product" to productAction? Notice the > trailing slash difference between these 2 routes. So the only difference is > slash. In the manual i found that routing ignores slashes .... > > Another question: how route for url " > www.example.com/parentcategory/category/childcategory/" should look like? > Categories number should not be limited.. so I guess something like regexp > ([^\/]+\/)+ should be used and I need to get the last category in url as > param in my controller action. > > Thanks in advance! > > > -- > Aurimas L. > -- Aurimas L.
