/** * @protected * Will set variables to all the views of a controller */ public function render() { $session = Registry::get("session"); if ($this->actionView) { $this->actionView->set("educator", $session->get("educator"))->set("scholar", $session->get("scholar"))->set("organization", $session->get("organization")); } if ($this->layoutView) { $this->layoutView->set("educator", $session->get("educator"))->set("scholar", $session->get("scholar"))->set("organization", $session->get("organization")); } parent::render(); }