On Mon, Mar 7, 2011 at 11:06 AM, tkuben <[email protected]> wrote: > what if you want a URL like this: > > http://localhost/press_release > > Would you create a new controller called press_release and the actions > associated with it. If the end user requires this to be an underscore. What > do we do? >
The ZF convention is to convert dashes to camel case when it comes to controllers, e.g.: /foo-bar => FooBarController /derp-doo-dun => DerpDooDunController If you want to use underscores, you'll need to create a route that routes "press_release" to whichever controller/action you end up creating to handle this request. For more information on routes check out the documentation here: http://framework.zend.com/manual/en/zend.controller.router.html If you are using Zend_Application and want to configure your routes with application.ini, refer to this documentation here: http://framework.zend.com/manual/en/zend.application.available-resources.html#zend.application.available-resources.router I hope this helps! -- *Hector Virgen* Sr. Web Developer http://www.virgentech.com
