Route with optional param is not working |
hello,
So I have routes like PHP Code: $route["admin/product/image/(:num)"]["delete"] = "product/deleteImage/$1"; http://localhost/PROJECT/admin/product/image as a delete request should work. But it leads to 404. I have to pass the last param to make it work. any help is appreciated.
Harpreet Bhatia
Web Developer / Analyst Technical Reviewer - "Codeigniter 2 Cookbook" |
Messages In This Thread |
Route with optional param is not working - by harpreet - 06-06-2016, 09:29 PM
RE: Route with optional param is not working - by cartalot - 06-07-2016, 01:33 PM
RE: Route with optional param is not working - by harpreet - 06-07-2016, 10:26 PM
RE: Route with optional param is not working - by kilishan - 06-07-2016, 06:07 PM
RE: Route with optional param is not working - by harpreet - 06-07-2016, 10:43 PM
|