• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
setRules

#1
Hi,
I wonder why this exemple taken from tutorial in codeigniter4 user guide,

public function create()
{
    helper('form');
    $model = new NewsModel();

    if (! $this->validate($this->request, [
        'title' => 'required|min[3]|max[255]',
        'text'  => 'required'
    ]))
    {
 
makes an error :
Argument 1 passed to CodeIgniter\Validation\Validation:ConfusedetRules() must be of the type array, object given, called in ...

Thanks for your help
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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