开发者

Problem with model loading in Zend Framework

I have weird problem with zend framework basics. I have simple action in IndexController:

public function updateusersAction() {
    $this->_helper->viewRenderer->setNoRender(true);
    $this->_helper->layout->disableLayout();

    new Application_Model_Users();
}

And a model I want to create is defined in application/models/Users.php (folders generated by zf.bat). The whole body of this file is as follow:

<?php

class Application_Model_Users {
    public function __construct() {
        echo "test";
    }
}

If it matters I use zf 1.10.6 on Windows 7 with xampp. Do you have any idea what could be the problem?

ps. I have to make it working on Windows as the target app will开发者_如何转开发 have to use COM components...


Huh. Found solution in another thread: zend framework can't find Model classes? Anyway, thanks for interest everyone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜