日期:2014-05-17 浏览次数:20438 次
require_once APPLICATION_PATH.'phperror_config.php';
require_once APPLICATION_PATH.'/models/Admin.php';
class AdminController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
//跳到登录界面
public function indexAction(){
}
//实现登录功能的检查
public function loginAction(){
$name=$this->getRequest()->getParam('adminname');//用zend的方法来取界面中的变量
$password=$this->getRequest()->getParam('adminpassword');
//创建一个表模型对象
$adminModel=new Admin();
print_r($name);
exit();
class Admin extends Zend_Db_Table {
protected $_name="admin";
protected $_primary="id";