-- Vadim Gabriel <[email protected]> wrote
(on Tuesday, 05 May 2009, 12:57 PM +0300):
> According to the code it requires both parameters to be set. Other wise it
> throws an exception.
The namespace *can* be an empty string ('') however.
> $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/
>
>
>
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/