Probléme de call_user_func_array() Développer un site : Jour 2

Par soufianewins, il y a 13 ans


call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in C:\wamp\www\site1\core\Dispatcher.php on line 24
Qui peux m'aidez , merci d'avance

$res = call_user_func_array(array($controller,$this->request->action),$this->request->params);
var_dump($res);
Bon qand je fait var_dump il me donne NULL avec l'erreur

2 réponses

Tackacoder, il y a 13 ans

Bonjour,
l'erreur vient de ton premier paramètre, que renvoie ta variable $controller ?

soufianewins, il y a 13 ans

Ok Merci pour votre réponse je vais essayer ;)