From the documentation, Slim found a controller router, and when I call it in code, I get an error. Help with a problem, please
Slim Application Error A website error has occurred. Sorry for the temporary inconvenience.
class MyController { protected $ci; // Constructor public function __construct(ContainerInterface $ci) { $this->ci = $ci; } public function method1($request, $response, $args) { // your code // to access items in the container... $this->ci->get(''); } } Hooked up so
$app->get('/method1', '\MyController:method1'); $app->run();