public function __construct() { parent::__construct(); $this->type = $this->url->getController(); }
/** * Set login from URL's action. * First parameter is set as action. */ public function __construct() { parent::__construct(); $this->url->setParamAsAction(); $this->id = $this->url->getParameter(0); }