Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
00001 <?php 00019 require_once('login.php'); 00020 00030 class loginController extends controller { 00031 00037 function __construct() { 00038 00039 parent::__construct(); 00040 00041 $this->_cpath = dirname(__FILE__); 00042 00043 } 00044 00050 public function adminlogin() { 00051 00052 $obj = new login('in'); 00053 $this->_view->setTpl('login_admin'); 00054 $this->_view->assign('form_action', $obj->actionform); 00055 00056 return $this->_view->render(); 00057 00058 } 00059 00065 public function adminlogout() { 00066 00067 $obj = new login('out'); 00068 $this->_view->setTpl('logout_admin'); 00069 $this->_view->assign('link', $obj->link); 00070 00071 return $this->_view->render(); 00072 00073 } 00074 00080 public function login() { 00081 00082 $obj = new login('in'); 00083 $this->_view->setTpl('login', array('css'=>'login')); 00084 $this->_view->assign('form_action', $obj->actionform); 00085 00086 return $this->_view->render(); 00087 00088 } 00089 00095 public function logout() { 00096 00097 $obj = new login('out'); 00098 $this->_view->setTpl('logout'); 00099 $this->_view->assign('link', $obj->link); 00100 00101 return $this->_view->render(); 00102 00103 } 00104 00110 public function index() { 00111 return null; 00112 } 00113 00114 } 00115 00116 ?>