2008年7月25日星期五

[fw-mvc] how to handle dynamic urls

I'm pretty new to MVC but have an implementation question

I'm building a site that will use unique URLs per account

e.g. www.domain.com/stores/Some_Dynamic_Store_Name/products/vewAll
www.domain.com/stores/Some_Other_Dynamic_Store_Name/admin
www.domain.com/stores/Some_Third_Dynamic_Store_Name/customers

and some will just be normal

www.domain.com/index/contactUs

how do I handle those URLs so that I can implement an MVC solution, do I
need to write my own router extension or do I need to use some sort of
.htaccess rewrite?

Just wondering if there's a best practices or what the best way of doing
this is as from what I can see in the MVC method, the first part of the URL
specifies controller and action and I need to handle all cases.
--
View this message in context: http://www.nabble.com/how-to-handle-dynamic-urls-tp18662550p18662550.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: