Yall:
I have a simple question, it might be a simple configuration issue, but I have a Model defined, and when I try to access it from a controller it fails.
The Model is in the model directory, and when I look at the quickstart app, it seems like this should work.
我的模式如下:
<?php
class Application_Model_User {
protected $_user;
protected $_password;
protected $_userId; // very simple right
}
?>
我的控制权人只是停留了。
<?php
class UserController extends Zend_Controller_Action {
public function init() {
}
public function indexAction() {
// display login form
$users = new Application_Model_User();
echo "test never echos.. stopped above ? weird huh.."; // fails before ..
}
?>
感谢大家,