if (!isset($adminLogin->loggedin)) { $baseUrl = new Zend_View_Helper_BaseUrl(); $this->getResponse()->setRedirect($baseUrl->baseUrl().'/something'); }