/** * 用户登录 */ public function indexAction() { $auth = Zend_Auth::getInstance(); if (!$auth->hasIdentity()) { $authAdapter = $this->getInvokeArg('bootstrap')->getResource('auth'); if ($authAdapter instanceof ZtChart_Model_Auth_Adapter_Sso) { $this->_redirect(ZtChart_Model_Auth_Adapter_Sso::getLogin()); } else { if ($authAdapter instanceof ZtChart_Model_Auth_Adapter_Soap) { $this->_forward('soap'); } } } }