getOperatorAccount(); if ($operator === false) { // operator needs to log in (default_login.php) $tpl = 'login'; } else { // operator is logged in (default_dashboard.php) $tpl = 'dashboard'; } $this->operator = $operator; parent::display($tpl); } }