Trollololololllllll....

I had to do this: 

'namespaces' => array( 
'Pixiebox' => __DIR__ .'/vendor/Pixiebox', 
) 

especially the / before vendor/Pixiebox
  ----- Original Message ----- 
  From: luk [via Zend Framework Community] 
  To: poashoas 
  Sent: Saturday, September 15, 2012 12:57 AM
  Subject: Re: Custom Library


  Definitely you called wrong class again below: 
  "Class 'Pixiebox\Resources\Whitelist\ListAcl' not found" that was not your 
class, it was: 
  "Pixiebox\Resources\Acl\Whitelist as Whitelist" 

  That's my index.php: 

  chdir(dirname(__DIR__)); 

  // Setup autoloading 
  include 'init_autoloader.php'; 

  Zend\Loader\AutoloaderFactory::factory(array( 
      'Zend\Loader\StandardAutoloader' => array( 
          'namespaces' => array( 
              'Pixiebox' => 'vendor/Pixiebox', 
          ) 
      ) 
  )); 

  use Pixiebox\Resources\Acl\Whitelist as Whitelist, 
  Zend\Mvc\Controller\Plugin\AbstractPlugin; 

  echo Whitelist::getWhitelist(); 

  I made getWhitelist method static and returned simple output, and guess what? 
it is working as expected... 



    poashoas wrote
    Still not working.... Class 'Pixiebox\Resources\Whitelist\ListAcl' not 
found 
    ... 
    Should I make a classmap or something???? 
    When I am typing it in my Netbeans it is recognizing my class in the file 
and stuff with autosuggest.... still no success 
  Cheers, -- Luke Mierzwa 



------------------------------------------------------------------------------

  If you reply to this email, your message will be added to the discussion 
below:
  
http://zend-framework-community.634137.n4.nabble.com/Custom-Library-tp4656831p4656834.html
 
  To unsubscribe from Custom Library, click here.
  NAML



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Custom-Library-tp4656831p4656836.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to