示例#1
0
 public function display($tpl = null)
 {
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     $app = JFactory::getApplication();
     $params = $app->getparams();
     $this->assignRef('params', $params);
     $this->pageclass_sfx = htmlspecialchars($params->get('pageclass_sfx'));
     $pathway = $app->getPathway();
     $pathway->addItem(JText::_('COM_DOGECOINTIPPING_PATHWAY_DASHBOARD'));
     require_once JPATH_COMPONENT . '/helpers/dogecointipping.php';
     $this->address_count = DogecoinTippingHelper::getAddressCount();
     $this->inline_amount = DogecoinTippingHelper::getInlineAmount();
     $this->_prepareDocument();
     parent::display($tpl);
 }