-- Mike Wright <[email protected]> wrote
(on Saturday, 02 May 2009, 11:15 AM -0700):
> J DeBord wrote:
>> My code:
>>
>> require_once 'Zend/Loader/Autoloader.php';
>> $autoloader = Zend_Loader_Autoloader::getInstance();
>> $autoloader->registerNamespace(array('Amazon_', 'Nba_'));
>>
>> $filesDomain = new Nba_SimpleDb_Domain_Files;
>>
>> There is a parse error in the class Nba_SimpleDb_Domain_Files.
>> With the code above, when executed, the screen is blank.
>>
>
> Rank amateur wrt ZF but I'll give this a stab.
>
> According to the API "registerNamespace" takes a simple string, not an  
> array.  

I need to update the API docs -- it actually *does* accept both strings
and arrays.

> I'm guessing that you'd have to call that method twice, once for  
> each namespace you wish to register.

Nope -- the example I provided is correct.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to