Flexible routing in Zend

lacHstar2

New Member
I haven't used the Zend Router much yet so not sure how difficult or easy this is, but I think Zend is flexible so it's got to have a way to do this easily. So I create a controller \[code\]Cont\[/code\] with 2 actions \[code\]actone\[/code\] and \[code\]acttwo\[/code\]. This naturally gives me\[code\]//the default index controllersite.com/ site.com/index/index //and my controllersite.com/cont/indexsite.com/cont/actonesite.com/cont/acttwo\[/code\]Is there a way I can access the \[code\]actone\[/code\] action which is in the \[code\]cont\[/code\] controller using a route that looks like this\[code\]site.com/actone\[/code\]I realize I could get this look by creating a separate controller called \[code\]Actone\[/code\] and this would be its \[code\]index\[/code\] action but this \[code\]actone\[/code\] action logically belongs to the \[code\]Cont\[/code\] controller, so I want to just give the appearance of that path.
 
Back
Top