HI
I have a small problem (I can do what I want with another way, but it's weird) I have a SessionController
<?php
namespace App\Controllers;
class SessionController extends ControllerBase {
public function initialize() { parent::initialize(); $this->view->setTemplateBefore('session'); } public function loginAction() {
// Shows only the view related to the action $this->view->pick('session/login'); }
A route /login in my router
$router->add( '/login', [ 'controller' => 'Session', 'action' => 'login', ] );
And a 'login.phtml' view inside a 'session' folder. And the problem is, my login.phtml is not picked with $this->view->pick('session/login'); and I really can't know why.