当前位置: 首页>>代码示例>>PHP>>正文


PHP ModuleFrontController::__construct方法代码示例

本文整理汇总了PHP中ModuleFrontController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ModuleFrontController::__construct方法的具体用法?PHP ModuleFrontController::__construct怎么用?PHP ModuleFrontController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ModuleFrontController的用法示例。


在下文中一共展示了ModuleFrontController::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     $this->auth = false;
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'stripejs.php';
 }
开发者ID:alexsegura,项目名称:prestashop-stripejs,代码行数:7,代码来源:default.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->ssl = true;
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
开发者ID:payneteasy,项目名称:php-plugin-prestashop,代码行数:7,代码来源:startsale.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     if ($this->ajax) {
         $this->content_only = true;
     }
 }
开发者ID:Oldwo1f,项目名称:yakaboutique,代码行数:7,代码来源:default.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $aResponse['error'] = false;
     $aResponse['message'] = '';
     if (isset($_POST['action'])) {
         $id_video = $_POST['idBox'];
         $ratting = $_POST['rate'];
         if (VideosRatting::checkRatting($id_video)) {
             $videosRatting = new VideosRatting();
             $videosRatting->add(array('id_video' => $id_video, 'ratting' => $ratting));
             $aResponse['error'] = FALSE;
             $aResponse['message'] = 'Your rate has been successfuly recorded. Thanks for your rate';
         } else {
             $aResponse['error'] = true;
             $aResponse['message'] = 'Your have rated for images';
         }
     } else {
         $aResponse['error'] = true;
         $aResponse['message'] = 'An error occured during the request. Please retry';
     }
     echo json_encode($aResponse);
     die;
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:25,代码来源:ratting.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // Hide columns
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
开发者ID:Paguila,项目名称:prestashop-webpay,代码行数:7,代码来源:validate.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     //include_once($this->module->getLocalPath().'WishList.php');
     include_once $this->module->getLocalPath() . 'simplecategory.php';
 }
开发者ID:zangles,项目名称:lennyba,代码行数:7,代码来源:get.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->ssl = true;
     include_once $this->module->getLocalPath() . 'WishList.php';
 }
开发者ID:toufikadfab,项目名称:PrestaShop-1.5,代码行数:7,代码来源:mywishlist.php

示例8: __construct

 public function __construct()
 {
     $this->display_column_left = false;
     $this->display_column_right = false;
     parent::__construct();
     $this->context = Context::getContext();
 }
开发者ID:powa,项目名称:prestashop-extension,代码行数:7,代码来源:confirmation2.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once dirname(__FILE__) . '/../../classes/LofBlock.php';
     include_once dirname(__FILE__) . '/../../classes/LofItem.php';
     include_once dirname(__FILE__) . '/../../lofadvancecustom.php';
 }
开发者ID:pacxs,项目名称:pacxscom,代码行数:8,代码来源:popup.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->themeName = Context::getContext()->shop->getTheme();
     $this->img_path = _PS_ALL_THEMES_DIR_ . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     $this->img_url = __PS_BASE_URI__ . 'themes/' . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     include_once $this->module->getLocalPath() . $this->_nameModule . '.php';
 }
开发者ID:ahmedonee,项目名称:morinella,代码行数:8,代码来源:preview.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'LoyaltyModule.php';
     include_once $this->module->getLocalPath() . 'LoyaltyStateModule.php';
     // Declare smarty function to render pagination link
     smartyRegisterFunction($this->context->smarty, 'function', 'summarypaginationlink', array('LoyaltyDefaultModuleFrontController', 'getSummaryPaginationLink'));
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:9,代码来源:default.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $columns = Context::getContext()->theme->hasColumns('index');
     $this->display_column_left = $columns['left_column'];
     $this->display_column_right = $columns['right_column'];
     include_once $this->module->getLocalPath() . 'iqitcontentcreator.php';
 }
开发者ID:evgrishin,项目名称:se1614,代码行数:9,代码来源:Editor.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->pfConfig = Payfort_Fort_Config::getInstance();
     $this->pfHelper = Payfort_Fort_Helper::getInstance();
     $this->pfPayment = Payfort_Fort_Payment::getInstance();
     if (session_id() == '') {
         session_start();
     }
 }
开发者ID:payfort,项目名称:prestashop-payfort,代码行数:10,代码来源:payment.php

示例14: __construct

 /**
  * @inheritdoc
  */
 public function __construct()
 {
     parent::__construct();
     if (($limit = Tools::getValue('limit')) !== false && !empty($limit)) {
         $this->limit = (int) $limit;
     }
     if (($offset = Tools::getValue('offset')) !== false && !empty($offset)) {
         $this->offset = (int) $offset;
     }
 }
开发者ID:silbersaiten,项目名称:nostotagging,代码行数:13,代码来源:api.php

示例15: __construct

 public function __construct()
 {
     $this->controller_type = 'modulefront';
     $this->module = Module::getInstanceByName(Tools::getValue('module'));
     if (!$this->module->active) {
         Tools::redirect('index');
     }
     $this->page_name = 'module-' . $this->module->name . '-' . Dispatcher::getInstance()->getController();
     parent::__construct();
 }
开发者ID:paeddl,项目名称:amzpayments-1,代码行数:10,代码来源:user_to_shop.php


注:本文中的ModuleFrontController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。