Welcome Guest, Not a member yet? Register   Sign In
Get data arguments
#3

(06-08-2018, 08:48 AM)ciadmin Wrote: You are calling your model method incorrectly.
Your setParam method has two conflicting signatures - one with a single parameter and one with two. Neither of them expects an array, just values.
Your call to the method passes an array of parameters as the only parameter.
Read your error message!

I noticed this when browsing and if I take them like this:
PHP Code:
$model->setParam([
 
'firstParam' => $this->request->getVar('firstParam')],[
 
'secondParam' => $this->request->getVar('secondParam')
]); 
then they are transferred and not problem...

But I wanted to learn how to correctly pass multiple values in CI4, because I'm not experienced (

Thanks for the answer!
Reply


Messages In This Thread
Get data arguments - by Nome - 06-08-2018, 03:54 AM
RE: Get data arguments - by ciadmin - 06-08-2018, 08:48 AM
RE: Get data arguments - by Nome - 06-09-2018, 03:43 AM
RE: Get data arguments - by InsiteFX - 06-09-2018, 09:08 AM
RE: Get data arguments - by Nome - 06-20-2018, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB