Blank URI parameters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Blank URI parameters (/showthread.php?tid=67609) |
Blank URI parameters - dbrooke - 03-15-2017 Hello... likely a noob question... Can someone tell me why blank params don't in the URI? Call works: Code: https://domain.com/admin/dbmembers/detail/blah/254 Call doesn't work: Code: https://domain.com/admin/dbmembers/detail//254 Admin.php Controller snippet: PHP Code: public function dbmembers($action = null, $subaction = null, $id = null) RE: Blank URI parameters - dbrooke - 03-15-2017 FYI, upon running more tests, in the call that doesn't work, it is clear that $subaction is being set to 254. That seems odd to me.. but maybe someone can explain a best practice here?? RE: Blank URI parameters - dbrooke - 03-16-2017 No comments I guess?? I guess I'll start adding dummy fillers for any param that doesn't have a value. |