Zend_Loader_Autoloader_Resource::__call
Overloading: methods
Allow retrieving concrete resource object instances using 'get<Resourcename>()' syntax. Example: <code> $loader = new Zend_Loader_Autoloader_Resource(array( 'namespace' => 'Stuff_', 'basePath' => '/path/to/some/stuff', )) $loader->addResourceType('Model', 'models', 'Model'); $foo = $loader->getModel('Foo'); // get instance of Stuff_Model_Foo class </code>
Signature
public function __call(string
$method,
array
$args )
Parameters
$method
— string$args
— array
Returns
- mixed
Errors/Exceptions
-
Zend_Loader_Exception
- if method not beginning with 'get' or not matching a valid resource type is called