public function initJQueryFiles() { $this->config->setOptions(array('basePath' => $this->getBase())); if ($this->config->is('ui-enable')) { $this->getHelperManager()->get('headScript')->prependFile($this->config->getJQueryUiLibraryPath()); } if ($this->config->is('enable')) { $this->getHelperManager()->get('headScript')->prependFile($this->config->getJQueryLibraryPath()); } }
public function __invoke() { if (!isset($this->_pluginmanager)) { $config = $this->_sm->getServiceLocator()->get('config'); Config::has('zf-complement', $config); $this->_pluginmanager = new JQueryPluginManager($config['zf-complement']); $this->_pluginmanager->setServiceLocator($this->_sm->getServiceLocator()); } return $this->_pluginmanager; }