예제 #1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $app = JFactory::getApplication();
     $this->params = JComponentHelper::getParams('com_remoteimage');
     $this->canDo = AKHelper::getActions($this->option);
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     if (JRequest::getVar('tmpl') == 'component') {
         $this->modal = true;
     } else {
         $this->addToolbar();
     }
     $this->notice();
     parent::display($tpl);
 }
예제 #2
0
 /**
  * Show or hide some fields setting.
  */
 public function handleFields()
 {
     $form = $this->form;
     parent::handleFields();
     // for Joomla! 3.0
     if (JVERSION >= 3) {
         // $form->removeField('name', 'fields');
     } else {
         // $form->removeField('name', 'fields');
     }
 }