I’m trying to autoload Classes from within a folder contained in the application itself.
E.G.
/Application
|->Models
|->Custom
|->Object.php
Is this the best way to do it (from bootstrap.php)?
public function _initAutoLoad() { $resourceLoader = new Zend_Loader_Autoloader_Resource(array( 'basePath' => APPLICATION_PATH, 'namespace' => '', 'resourceTypes' => array( 'custom' => array( 'path' => 'custom/', 'namespace' => 'Custom', )) )); }
Meaning from within any controller, I can call:
$object = new Custom_Object();
Looks like the solution I had is the best… I can find anyways…