Пример #1
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');
 }
Пример #2
0
 public function init()
 {
     $this->_admin = TCVM_Admin_Factory::Factory();
 }
Пример #3
0
 private function _initAdmin()
 {
     $adminMod = TCVM_Admin_Factory::Factory();
     $adminMod->generDefaultAdmin();
 }