Hey,
According to the code it requires both parameters to be set. Other wise it
throws an exception.
$namespace = $this->getNamespace();
if ((null === $namespace)
|| (null === $this->getBasePath())
) {
require_once 'Zend/Loader/Exception.php';
throw new Zend_Loader_Exception('Resource loader requires both a
namespace and a base path for initialization');
}
On Tue, May 5, 2009 at 12:51 PM, Goran Juric <[email protected]>wrote:
>
>
> Matthew Weier O'Phinney-3 wrote:
> >
> > $loader = new Zend_Application_Module_Autoloader(array(
> > 'basePath' => APPLICATION_PATH,
> > 'namespace' => '', // no resource namespace
> > ));
> >
>
> Hi, are there any side effects of having an "empty" namespace?
>
> Regards,
>
> Goran Juric
> http://gogs.info/
> --
> View this message in context:
> http://www.nabble.com/Zend_Loader_Autoloader-match-Zend_Loader-functionality-tp23344467p23384297.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>
--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.
Zend Framework Certified Engineer.
-- http://www.vadimg.co.il/