public function __construct() { $this->controller = Router::getController(); // get current controller $this->action = Router::getAction(); // get current action/method // check if there is an ID on current route (URL) if (Router::hasID()) { $this->id = Router::getID(); // get ID } }