コード例 #1
0
ファイル: view.html.php プロジェクト: pashakiz/crowdf
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->item = $this->get('Item');
     $this->form = $this->get('Form');
     $this->layout = $this->getLayout();
     if (strcmp($this->layout, "edit") != 0) {
         $currency = new Crowdfunding\Currency(JFactory::getDbo());
         $currency->loadByCode($this->item->txn_currency);
         $crowdfundingParams = JComponentHelper::getParams("com_crowdfunding");
         $this->amount = new Crowdfunding\Amount($crowdfundingParams);
         $this->amount->setCurrency($currency);
     }
     // Prepare actions, behaviors, scripts and document
     $this->addToolbar();
     $this->setDocument();
     parent::display($tpl);
 }