示例#1
0
 /**
  * Retrieve plugin loader for a specific plugin type
  *
  * @param  string $type
  * @return Zend_Loader_PluginLoader
  */
 public function getPluginLoader($type)
 {
     $type = strtolower($type);
     $loader = parent::getPluginLoader($type);
     // Add Zym Prefix
     $pType = ucfirst($type);
     $prefix = 'Zym_View_' . $pType;
     $path = 'Zym/View/' . $pType;
     if (!$loader->getPaths($prefix)) {
         switch ($type) {
             case 'filter':
             case 'helper':
             default:
                 $loader->addPrefixPath($prefix, $path);
                 break;
         }
     }
     return $loader;
 }