开发者

Problem with model loading in Zend Framework

开发者 https://www.devze.com 2023-01-08 13:59 出处:网络
I have weird problem with zend framework basics. I have simple action in IndexController: public function updateusersAction() {

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

精彩评论

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