[fw-general] Re: Custom Library Outside "vendor" Folder

2013-04-11 Thread stef
That's it. Thank you. -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Custom-Library-Outside-vendor-Folder-tp4659685p4659696.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: fw-general@lists.zend.com Info: http://framework.ze

Re: [fw-general] Re: Custom Library Outside "vendor" Folder

2013-04-11 Thread Pierre Rambaud
No, it's here that the autoloader must be defined. 2013/4/11 stef > Thank you all that helped. In the meantime I have Googled solution to > change > index.php like this: > > Zend\Loader\AutoloaderFactory::factory( > array('Zend\Loader\StandardAutoloader' => array( > 'nam

[fw-general] Re: Custom Library Outside "vendor" Folder

2013-04-11 Thread stef
Thank you all that helped. In the meantime I have Googled solution to change index.php like this: Zend\Loader\AutoloaderFactory::factory( array('Zend\Loader\StandardAutoloader' => array( 'namespaces' => array( 'MyNamespace => dirname(__DIR__) . '/path_to

Re: [fw-general] Re: Custom Library Outside "vendor" Folder

2013-04-10 Thread Pierre Rambaud
Hi, Please look these files: https://github.com/PierreRambaud/GotCms/blob/master/config/application.config.php https://github.com/PierreRambaud/GotCms/blob/master/init_autoloader.php There's autoloader that will load namespaces and module_paths will determine the modules' folders. Regards, 20

[fw-general] Re: Custom Library Outside "vendor" Folder

2013-04-10 Thread Marco Pivetta
You can just edit your `init_autoload.php` to suit your needs. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 10 April 2013 09:00, stef [via Zend Framework Community] < ml-node+s634137n4659685...@n4.nabble.com> wrote: > Is it possible to place custom library files, c

[fw-general] Re: Custom Library

2012-09-17 Thread luk
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\

[fw-general] Re: Custom Library

2012-09-15 Thread poashoas
Trollololololll 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 Su

[fw-general] Re: Custom Library

2012-09-14 Thread poashoas
Still not working Class 'Pixiebox\Resources\Whitelist\ListAcl' not found use Pixiebox\Resources\Acl\Whitelist, Zend\Mvc\Controller\Plugin\AbstractPlugin; class PermissionsAcl extends AbstractPlugin { function blah($e) { $blah = new Whitelist(); $foo = $blah->getWhitelist

[fw-general] Re: Custom Library

2012-09-14 Thread RobinvdM
The alias Whitelist in your example refers to the class 'Pixiebox\Resources\Acl', which doesn't exist. The class you've created is 'Pixiebox\Resources\Acl\/Whitelist/'. Change the alias and it will work, you can drop the 'as Whitelist'. -- View this message in context: http://zend-framework-com