I’ve the next structure
-application --controllers ---Sub ----DemoController.php ---IndexController.php -models -views -Boostrap.php
Well, in my Sub/DemoController.php I’ve the next:
<?php
class Sub_DemoController extends Zend_Controller_Action
{
public function indexAction()
{
echo 'hello demo';
}
}
And my IndexController.php like this:
<?php
class IndexController extends Sub_DemoController
{
}
When I run my web throw the next error: Class ‘Sub_DemoController’ not found …
I try with initialize class with Application_Sub_DemoController, but return the same result.
I don’t want use modules, I know how uses modules in Zend Framewoork but I don’t looking for it.
Any ideas?
You need to add
resourceTypeto your resource autoloader add this to you bootstrap file:More: http://framework.zend.com/manual/1.12/en/zend.loader.autoloader-resource.html