Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Uncaught TypeError: call_user_func(): Argument #1

// add static to the functions in your controller file like "ProductController.php" or whatever and it should work 

// like if your code looks like that:

class ProductController {

   public function index() {

       echo 'index page';

   }

}

// it should be like that:

class ProductController {

   public static function index() {

       echo 'index page';

   }

}


// and it should work fine 
// good luck and sorry for my bad english
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Uncaught #Argument
ADD COMMENT
Topic
Name
9+5 =