Example #1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // get the data from the model
     $this->item = $this->get('Item');
     $this->translation = $this->get('Translation');
     $this->language = JKitHelperLangs::getLangTitle(JRequest::getCmd('lang'));
     $this->params = JComponentHelper::getParams('com_jkit');
     // create the toolbar
     JKitHelper::getToolbar(false, true, $this->item->title . ' (' . JText::sprintf('COM_JKIT_TRANSLATION_TITLE', $this->language) . ')');
     // display the view template
     parent::display($tpl);
 }