Hey :).

I got a question, I have this modular structure, the default one:

modules/
    article/
        controllers/
            AdminController.php
            IndexController.php
        models
            SmartArticle.php
        views/
            scripts/
                article/
                    *.phtml

I have an issue, when I try to load the model named "SmartArticle.php":

/**
 * Browse.
 *
 */
public function browseAction()
{
    // Load News module.
    $objSmartArticle = new SmartArticle();
}

I got a fatal error:

Fatal error: Class 'SmartArticle' not found in 
/home/jfalvarez/php5/test/site/modules/article/controllers/AdminController.php 
on line 99

I'm using the Zend_Loader::registerAutoload(); method into the bootstrap, the 
model name should be equal than the module name ? I mean, "SmartArticle" should 
be "Article" ?

Thx for any help.

Reply via email to