i got this error : Warning: call_user_func_array() expects exactly 2 parameters, 3 given in

call_user_func_array($this->controller, $this->method, $this->params);

This call is wrong, check this example on the official PHP documentation. Your code should be the following instead: (using array syntax for class methods).

call_user_func_array([$this->controller, $this->method], $this->params);
//                   ^                                ^

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)