Quantcast

default route not understand the params

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

default route not understand the params

sina miandashti-3
hi

i have removeAction() method in my IndexController

so I can access it via localhost/project/application/index/remove

i want to pass params to it ... like
localhost/project/application/index/remove/id/2/type/material  for example

but it says 404 not found

why automatic routing not works?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: default route not understand the params

Marco Pivetta
Even if a wildcard route exists, it is not the suggested approach anymore,
and isn't enabled by default.

Marco Pivetta

http://twitter.com/Ocramius

http://marco-pivetta.com



On 19 August 2012 09:21, sina miandashti <[hidden email]> wrote:

> hi
>
> i have removeAction() method in my IndexController
>
> so I can access it via localhost/project/application/index/remove
>
> i want to pass params to it ... like
> localhost/project/application/index/remove/id/2/type/material  for example
>
> but it says 404 not found
>
> why automatic routing not works?
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: default route not understand the params

sina miandashti
thanks

i created segment routs for edit and add entities



On Tue, Aug 21, 2012 at 1:39 PM, Marco Pivetta <[hidden email]> wrote:

> Even if a wildcard route exists, it is not the suggested approach anymore,
> and isn't enabled by default.
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://marco-pivetta.com
>
>
>
> On 19 August 2012 09:21, sina miandashti <[hidden email]> wrote:
>
> > hi
> >
> > i have removeAction() method in my IndexController
> >
> > so I can access it via localhost/project/application/index/remove
> >
> > i want to pass params to it ... like
> > localhost/project/application/index/remove/id/2/type/material  for
> example
> >
> > but it says 404 not found
> >
> > why automatic routing not works?
> >
>



--
________________
Sincerely
Sina Miandashti
www.InTheMix.ir  Admin
www.teamatec.com Head PHP Developer
Loading...