zend framework can't find Model classes ?
Posted
by user284503
on Stack Overflow
See other posts from Stack Overflow
or by user284503
Published on 2010-03-24T16:50:00Z
Indexed on
2010/03/24
16:53 UTC
Read the original article
Hit count: 324
zend-framework
|model
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.
Here is my model:
<?php
class Application_Model_User {
protected $_user;
protected $_password;
protected $_userId; // very simple right
}
?>
My controller just stops.. here is the controller code:
<?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 ..
}
?>
Thank you everyone,
© Stack Overflow or respective owner