// 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