Welcome Guest, Not a member yet? Register   Sign In
How manage the segment error in the URI / pagination class
#4

Your function “all” have one parameter. If you go to /contact/all it expect a value for $startLimitResult and it is missing

PHP Code:
public function all($startLimitResult
  

If you want to be able to call this controller with no value, you need to define a default value like this:

PHP Code:
public function all($startLimitResult 0
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: How manage the segment error in the URI / pagination class - by includebeer - 03-09-2020, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB