sathyashrayan

earth Module.php

Mar 8th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2. //module/hello/Earth/Module.php
  3. namespace hello\Earth;
  4.  
  5. class Module
  6. {
  7.  
  8. public function getConfig()
  9.     {
  10.         return include __DIR__ . '/config/module.config.php';
  11.     }
  12. public function getAutoloaderConfig()
  13.     {
  14.  
  15.  
  16.        $loader = array(
  17.             'Zend\Loader\StandardAutoloader' => array(
  18.                 'namespaces' => array(
  19.                     __NAMESPACE__ => __DIR__ . '/src/' . str_replace("\\", "/", __NAMESPACE__),
  20.                 ),
  21.             ),
  22.         );
  23. //print_r($loader);
  24.         return array(
  25.             'Zend\Loader\StandardAutoloader' => array(
  26.                 'namespaces' => array(
  27.                     //__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
  28.              __NAMESPACE__ => __DIR__ . '/src/' . str_replace("\\", "/", __NAMESPACE__),
  29.                 ),
  30.             ),
  31.         );
  32.     }
  33.  
  34. }
Add Comment
Please, Sign In to add comment