public function startup() { parent::startup(); $this->basePath = $this->template->basePath; $this->publicPath = $this->basePath . '/www'; $this->user = parent::getUser(); $this->activeMenuItem = 'Homepage'; if ($this->user->isLoggedIn()) { $this->user->startup(); } }