Welcome Guest, Not a member yet? Register   Sign In
Route with optional param is not working
#5

(06-07-2016, 06:07 PM)kilishan Wrote: In your method definition, provide a null possibility for the argument and it should work for you:

Code:
function deleteImage($id = null)
{
   . . .
}

I too thought that would work but it does not and  am not sure why
another example with screenshot. Let me know if i am doing anything wrong.
   
   
   
   
Harpreet Bhatia
Web Developer / Analyst
Technical Reviewer - "Codeigniter 2 Cookbook"

Reply


Messages In This Thread
RE: Route with optional param is not working - by harpreet - 06-07-2016, 10:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB