Example #1
0
 /**
  * @return  TCVM_Admin_Interface
  */
 public static function Factory()
 {
     if (!self::$_instance) {
         self::$_instance = new TCVM_Admin_Imple();
     }
     return self::$_instance;
 }
Example #2
0
 public function postloginAction()
 {
     $username = $this->getRequest()->getParam('username');
     $password = $this->getRequest()->getParam('password');
     $adminMod = TCVM_Admin_Factory::Factory();
     try {
         $adminMod->login($username, $password);
     } catch (Exception $ex) {
         $this->assign('error', $ex->getMessage());
         $this->_helper->layout->setLayout('login');
         $this->render('login');
         return;
     }
     $this->redirect('index', 'index', 'admin');
 }
Example #3
0
 public function init()
 {
     $this->_admin = TCVM_Admin_Factory::Factory();
 }
Example #4
0
 private function _initAdmin()
 {
     $adminMod = TCVM_Admin_Factory::Factory();
     $adminMod->generDefaultAdmin();
 }