/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options. * @return void */ protected function _initialize(KConfig $config) { $paths[] = dirname($this->getIdentifier()->filepath) . '/html'; $paths[] = implode(DS, array(JPATH_THEMES, JFactory::getApplication()->getTemplate(), 'html', $this->getIdentifier()->type . '_' . $this->getIdentifier()->package, $this->getName())); $config->append(array('template_paths' => $paths)); parent::_initialize($config); }
/** * Initializes the configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param array Configuration settings */ protected function _initialize(KConfig $config) { $path[] = dirname($this->getIdentifier()->filepath) . '/html'; $config->append(array('template_filters' => array('form', 'module'), 'media_url' => JURI::base() . '../media', 'layout' => KInflector::isSingular($this->getName()) ? 'form' : 'default', 'template_paths' => $path)); parent::_initialize($config); }