public function __construct(\Slim\App $app, $controller_name_from_uri, $action_name_from_uri) { parent::__construct($app, $controller_name_from_uri, $action_name_from_uri); //Prepend view folder for this controller. //It takes precedence over the view folder for the base controller. $path_2_view_files = __DIR__ . DIRECTORY_SEPARATOR . '../views/hello'; $this->view_renderer->prependPath($path_2_view_files); }
public function __construct(\Interop\Container\ContainerInterface $container, $controller_name_from_uri, $action_name_from_uri, \Psr\Http\Message\ServerRequestInterface $req, \Psr\Http\Message\ResponseInterface $res) { parent::__construct($container, $controller_name_from_uri, $action_name_from_uri, $req, $res); }