Example #1
0
 /**
  *  If the current layout points to a folder then set the layout to folder/default.php.
  */
 public function display()
 {
     if (is_dir($this->getTemplate()->findPath($this->getLayout()))) {
         $this->setLayout($this->getLayout() . '/default');
     }
     return parent::display();
 }
Example #2
0
 /**
  * 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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('template_paths' => array(dirname(__FILE__) . '/html')));
     parent::_initialize($config);
     $config->append(array('template_paths' => array(JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_actors/actor')));
     $this->enabled_apps = null;
 }
Example #3
0
 /**
  * (non-PHPdoc).
  *
  * @see LibBaseViewHtml::display()
  */
 public function display()
 {
     if ($this->_state->getItem()) {
         $url = $this->getRoute($this->_state->getItem()->getURL());
         $this->getService('application')->redirect($url);
     }
     return parent::display();
 }
Example #4
0
 /**
  * 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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('list_item_view' => KInflector::singularize($this->getIdentifier()->package), 'template_paths' => array(dirname(__FILE__) . '/html')));
     parent::_initialize($config);
     $config->append(array('template_paths' => array(JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_tags/tags')));
 }
Example #5
0
 /**
  * Initializes the default configuration for the object
  *
  * Called from {@link __construct()} as a first step of object instantiation.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  * 
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('template_paths' => array(dirname(__FILE__) . DS . 'html'), 'layout' => 'form'));
     parent::_initialize($config);
 }
Example #6
0
 /**
  * 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.
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('template_paths' => array(dirname(__FILE__) . '/html')));
     parent::_initialize($config);
     $config->append(array('template_paths' => array(JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_base/nodes')));
 }
Example #7
0
 /**
  * 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)
 {
     $config->append(array());
     parent::_initialize($config);
 }