• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.