 
      
    Zend Framework
- 1 ответ
- 0 вопросов
    1
    Вклад в тег
    
      
      
    
  
  
 
  
  $front = Zend_Controller_Front::getInstance(); $front->registerPlugin(new You_Plugin_Example());
require APPLICATION_PATH . '/path/to/plugins/example.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('You_');
$loader = new Zend_Loader_PluginLoader();
$loader->addPrefixPath('You_Plugin', APPLICATION_PATH . '/path/to/plugins/');
$module = new Zend_Application_Module_Autoloader(array(
    'namespace' => 'Example',
    'basePath'  => APPLICATION_PATH . '/modules/example',
        'resourceTypes' => array(
            'plugin' => array(
                'namespace' => 'Plugin',
                'path'      => 'plugins/',
            ),
        )
));