Hi there,

I want to use my custom library Pixiebox.
I have all kinds of classes in it but not sure if it is autoloaded...

I have in th index.php the following

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

Somewhere else I have vendor/Pixiebox/Resources/Acl/Whitelist.php

namespace Pixiebox\Resources\Acl;

use Zend\Db\Adapter\Driver\Pdo;

class Whitelist implements Connection
{
  public function getWhitelist()
  {
    $sql = 'SELECT
      rechten,
      module,
      controller,
      action
    FROM rechten';
    $rechten = $this->execute($sql);

    return $rechten;
  }
}

When I do the following I get "Fatal error: Class 'Pixiebox\Resources\Acl'
not found":

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

class PermissionsAcl extends AbstractPlugin {
  function blah($e) {
     $blah = Whitelist::getWhitelist();
  }
}



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

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to