當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FrontController::displayContent方法代碼示例

本文整理匯總了PHP中FrontController::displayContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP FrontController::displayContent方法的具體用法?PHP FrontController::displayContent怎麽用?PHP FrontController::displayContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FrontController的用法示例。


在下文中一共展示了FrontController::displayContent方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: displayContent

 public function displayContent()
 {
     parent::displayContent();
     if ($this->supplier) {
         self::$smarty->display(_PS_THEME_DIR_ . 'supplier.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'supplier-list.tpl');
     }
 }
開發者ID:hecbuma,項目名稱:quali-fisioterapia,代碼行數:9,代碼來源:SupplierController.php

示例2: displayContent

 public function displayContent()
 {
     if (Tools::isAjaxRequest()) {
         echo json_encode(array('blockcallback_error' => self::$smarty->get_template_vars('blockcallback_error'), 'blockcallback_msg' => self::$smarty->get_template_vars('blockcallback_msg')));
     } else {
         parent::displayContent();
         self::$smarty->display(_PS_THEME_DIR_ . 'category.tpl');
     }
 }
開發者ID:WhisperingTree,項目名稱:etagerca,代碼行數:9,代碼來源:CallbackController.php

示例3: displayContent

 public function displayContent()
 {
     parent::displayContent();
     if ($this->success) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'success.tpl');
     } else {
         self::$smarty->display(_TAS_THEME_DIR_ . 'forgotpassword.tpl');
     }
 }
開發者ID:khuyennd,項目名稱:dev-tasagent,代碼行數:9,代碼來源:ForgotPasswordController.php

示例4: displayContent

 public function displayContent()
 {
     parent::displayContent();
     global $isBetaUser;
     if ($isBetaUser) {
         self::$smarty->display(_PS_THEME_DIR_ . 'beta/addresses.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'addresses.tpl');
     }
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:10,代碼來源:AddressesController.php

示例5: displayContent

 public function displayContent()
 {
     global $isBetaUser;
     parent::displayContent();
     if ($isBetaUser) {
         self::$smarty->display(_PS_THEME_DIR_ . 'beta/history.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'history.tpl');
     }
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:10,代碼來源:HistoryController.php

示例6: displayContent

 public function displayContent()
 {
     parent::displayContent();
     $customer = new Customer((int) self::$cart->id_customer);
     $address_invoice = new Address((int) self::$cart->id_address_invoice);
     $country = new Country((int) $address_invoice->id_country);
     $currency = new Currency((int) self::$cart->id_currency);
     $countries = $this->klarna->getCountries();
     $type = Tools::getValue('type');
     if ($this->klarna->verifCountryAndCurrency($country, $currency) && ($type == 'invoice' || $type == 'account' || $type == 'special')) {
         $pno = array('SE' => 'yymmdd-nnnn', 'FI' => 'ddmmyy-nnnn', 'DK' => 'ddmmyynnnn', 'NO' => 'ddmmyynnnn', 'DE' => 'ddmmyy', 'NE' => 'ddmmyynnnn');
         self::$smarty->assign('country', $country);
         self::$smarty->assign('pnoValue', $pno[$country->iso_code]);
         self::$smarty->assign('iso_code', strtolower($country->iso_code));
         $i = 1;
         while ($i <= 31) {
             if ($i < 10) {
                 $days[] = '0' . $i;
             } else {
                 $days[] = $i;
             }
             $i++;
         }
         $i = 1;
         while ($i <= 12) {
             if ($i < 10) {
                 $months[] = '0' . $i;
             } else {
                 $months[] = $i;
             }
             $i++;
         }
         $i = 2000;
         while ($i >= 1910) {
             $years[] = $i--;
         }
         $houseInfo = $this->getHouseInfo($address_invoice->address1);
         self::$smarty->assign(array('days' => $days, 'customer_day' => (int) substr($customer->birthday, 8, 2), 'months' => $months, 'customer_month' => (int) substr($customer->birthday, 5, 2), 'years' => $years, 'customer_year' => (int) substr($customer->birthday, 0, 4), 'street_number' => $houseInfo[1], 'house_ext' => $houseInfo[2]));
         if ($type == 'invoice') {
             $total = self::$cart->getOrderTotal() + (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name']));
         } else {
             $total = self::$cart->getOrderTotal();
         }
         self::$smarty->assign(array('total_fee' => $total, 'fee' => $type == 'invoice' ? (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])) : 0));
         if ($type == 'account') {
             self::$smarty->assign('accountPrice', $this->getMonthlyCoast(self::$cart, $countries, $country));
         }
         if ($customer->id_gender != 1 && $customer->id_gender != 2 && $customer->id_gender != 3 && ($country->iso_code == 'DE' || $country->iso_code == 'NL')) {
             self::$smarty->assign('gender', Gender::getGenders()->getResults());
         }
         self::$smarty->assign('linkTermsCond', $type == 'invoice' ? 'https://online.klarna.com/villkor' . ($country->iso_code != 'SE' ? '_' . strtolower($country->iso_code) : '') . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']) . '&charge=' . round((double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])), 2) : 'https://online.klarna.com/account_' . strtolower($country->iso_code) . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']));
         self::$smarty->assign('payment_type', Tools::safeOutput($type));
         self::$smarty->display(_PS_MODULE_DIR_ . 'klarnaprestashop/tpl/form.tpl');
     }
 }
開發者ID:juniorhq88,項目名稱:PrestaShop-modules,代碼行數:55,代碼來源:payment.php

示例7: displayContent

 public function displayContent()
 {
     parent::displayContent();
     if ($this->success) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'resetsuccess.tpl');
     } elseif ($this->expired) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'passwordexpired.tpl');
     } else {
         self::$smarty->display(_TAS_THEME_DIR_ . 'resetpassword.tpl');
     }
 }
開發者ID:khuyennd,項目名稱:dev-tasagent,代碼行數:11,代碼來源:ResetPasswordController.php

示例8: displayContent

 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'helpanorphan.tpl');
 }
開發者ID:priyankajsr19,項目名稱:indusdiva2,代碼行數:5,代碼來源:HelpAnOrphanController.php

示例9: displayContent

 public function displayContent()
 {
     $_POST = array_merge($_POST, $_GET);
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'contact-form.tpl');
 }
開發者ID:srikanthash09,項目名稱:codetestdatld,代碼行數:6,代碼來源:ContactController.php

示例10: displayContent

 public function displayContent()
 {
     parent::displayContent();
     if ($_POST["booking"] == 'finish') {
         self::$smarty->display(_TAS_THEME_DIR_ . 'booking_finish.tpl');
     } else {
         if ($_POST["booking"] == 'payment') {
             self::$smarty->display(_TAS_THEME_DIR_ . 'paymentsuccess.tpl');
         } else {
             if ($_POST["booking"] == 'calculate') {
                 self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
             } else {
                 // view
                 if ($_REQUEST['voucher']) {
                     self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm_voucher.tpl');
                 } else {
                     if ($_REQUEST['vouch_info']) {
                         self::$smarty->display(_TAS_THEME_DIR_ . 'hotelvoucher.tpl');
                     } else {
                         self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm.tpl');
                     }
                 }
             }
         }
     }
 }
開發者ID:khuyennd,項目名稱:dev-tasagent,代碼行數:26,代碼來源:BookingConfirmController.php

示例11: displayContent

 public function displayContent()
 {
     parent::displayContent();
     $this->_processAddressFormat();
     self::$smarty->display(_PS_THEME_DIR_ . 'address.tpl');
 }
開發者ID:greench,項目名稱:prestashop,代碼行數:6,代碼來源:AddressController.php

示例12: displayContent

 public function displayContent()
 {
     parent::displayContent();
     $this->display();
 }
開發者ID:nicolasjeol,項目名稱:hec-ecommerce,代碼行數:5,代碼來源:BlogTagsController.php

示例13: displayContent

 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
 }
開發者ID:khuyennd,項目名稱:dev-tasagent,代碼行數:5,代碼來源:BookingOrderController.php

示例14: displayContent

 /**
  * Display front office tpl
  */
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(dirname(__FILE__) . '/../search.tpl');
 }
開發者ID:rtajmahal,項目名稱:PrestaShop-modules,代碼行數:8,代碼來源:PrediggoSearchController.php

示例15: displayContent

 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->assign(array('HOOK_RIGHTPRODUCTCOLUMN' => Module::hookExec('rightColumn', array('cart' => self::$cart))));
     self::$smarty->display(_PS_THEME_DIR_ . 'product.tpl');
 }
開發者ID:srikanthash09,項目名稱:codetestdatld,代碼行數:6,代碼來源:ProductController.php


注:本文中的FrontController::displayContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。