One possible way would be to create a route like this (please forgive the laziness of my copy and paste):

       <route>schedule/*</route>
<defaults>
           <module>events</module>
           <controller>index</controller>
           <action>index</action>
       </defaults>


spaceage wrote:
So this Z...C...R approach would route all requests to a single controller
and action, no?  But what if I want to allow something like this (but not
always):

[URI]/controller/var1/value1/var2/value2

while still allowing the standard:

[URI]/controller/action/var1/value1/var2/value2



Michał Minicki wrote:
spaceage <> napisał(a):

Is there any way around this, ie. a "magic" way to signal default/index
for one or both of the controller/action designators and still pass in
parameters in their place(s) without confusing the router?
You are most probably trying to achieve something like below route. I.e.
to pass all requests to one controller and action and parse all the parameters as dynamic var-value pairs. And if so - yes, it's possible.

$route = new Z...C...R_Route(
    '*',
    array('controller' => 'default', 'action' => 'index')
)



--
Martel Valgoerad aka Michal Minicki | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." -- Floyd Dell





Reply via email to