title: Zend Framework 2 custom library in my controller
body: <p>I'm using ZendSkeletonApplication and I have this directory :</p>
  
  <pre><code>/home/mydir/vendor/My/library/My/Helper
  </code></pre>
  
  <p>which contains ff.php (respectively, <code>/home/mydir/vendor/My/library/My/Helper/ff.php</code>)</p>
  
  <p>My code in <code>ff.php</code> :</p>
  
  <pre><code>&lt;?php
  
  namespace My\Helper;
  
  class FF {
      public function test() {
          echo "success !";
      }
  }
  </code></pre>
  
  <p>And my controller :</p>
  
  <pre><code>&lt;?php
  namespace Application\Controller;
  
  use Zend\Mvc\Controller\AbstractActionController;
  use Zend\View\Model\ViewModel;
  
  use My\Helper\FF;
  
  class IndexController extends AbstractActionController
  {
      public function indexAction()
      {
          FF::test();
          return new ViewModel();
      }
  }
  </code></pre>
  
  <p>My module.php :</p>
  
  <pre><code>public function getAutoloaderConfig()
  {
      return array(
          'Zend\Loader\StandardAutoloader' =&gt; array(
              'namespaces' =&gt; array(
                  __NAMESPACE__ =&gt; __DIR__ . '/src/' . __NAMESPACE__,
                  'My' =&gt; __DIR__ . '/../vendor/My/library/My'
              ),
          ),
      );
  }
  </code></pre>
  
  <p>And I get this error :<code>Fatal error: Class 'My\Helper\FF' not found in /home/mydir/module/Application/src/Application/Controller/IndexController.php on line 13</code></p>
  
  <p>How resolve ?</p>
  
  <p>Thank you</p>