Zend 文件引入 表模型
这个是控制器 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";就是那句
$adminModel=new Admin();
没人啊 ,结贴了
你自己看看你最上面的require_once 是不是少了一个什么符号
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号