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

Answers


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


Need Your Help

Firebase REST API - how to set character encoding?

javascript node.js post utf-8 firebase

I'm calling the Firebase REST API from a Node.js process. The problem I'm seeing is that POSTS fail when the post body contains non-ASCII characters. This is despite the request returning a "200" s...

glViewport not working on iOS

ios opengl-es

I'm trying to make a OpenGL project to iOS but glViewport can`t work on it.