English 中文(简体)
冻结的框架能够找到示范类别?
原标题:zend framework can t find Model classes?

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 ..
    }
?>

感谢大家,

最佳回答

http://www.un.org

appnamespace = "Application_"

申请结构:

/application/
            /models/
                   /User.php

等级定义:

class Application_Model_User {}

工作应当由科索沃完成。

问题回答

暂无回答




相关问题
What do you have in your Model class?

What do you have in your model classes. Generally if i use any framework or any library (Zend Framework) , my classes only have variable which is table name . I know that in complicated applications ...

Rails Model With Aggregrate Data (not backed by a table)

Id like to create a model in rails that does not correlate to a table in the database. Instead the model should dynamically pull aggregrate data about other models. Example: I have a Restaurant ...

Trouble changing databases for my models in codeigniter

I m making a website with two different databases. Let s say one is DB1, and the other is DB2. I ve set up my database.php in the config folder, so they each have the correct host/password/username/...

EMAIL server FSP model

For my assignment I need to develop FSP model for email server and client. I manage to write simple model which describes one user, server and his mailbox, but I am having problems changing this ...

Rails Custom Model Functions

I m in a databases course and the instructor wants us to develop an e-commerce app. She said we can use any framework we like, and now that we re halfway through the semester she decided that Rails ...

热门标签