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'); }
public function init() { $this->_admin = TCVM_Admin_Factory::Factory(); }
private function _initAdmin() { $adminMod = TCVM_Admin_Factory::Factory(); $adminMod->generDefaultAdmin(); }