Ejemplo n.º 1
0
 /**
  * @param modX  $modx
  * @param array $config
  */
 function __construct(modX &$modx, array $config = array())
 {
     parent::__construct($modx, $config);
     $fqn = $modx->getOption('twiggy_class', null, 'twiggy.twiggy', true);
     $path = $modx->getOption('twiggy_class_path', null, MODX_CORE_PATH . 'components/twiggy/model/', true);
     if ($twiggyClass = $modx->loadClass($fqn, $path, false, true)) {
         $this->twiggy = new $twiggyClass($modx, $this->config);
     }
 }