Welcome Guest, Not a member yet? Register   Sign In
Blank URI parameters
#1

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)
 
 {
 
   data['theID'] = $id;
 
 )

Reply
#2

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??
Reply
#3

No comments I guess?? I guess I'll start adding dummy fillers for any param that doesn't have a value.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB