当前位置: 首页>>代码示例>>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;未经允许,请勿转载。