本文整理汇总了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';
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->ssl = true;
$this->display_column_left = false;
$this->display_column_right = false;
}
示例3: __construct
public function __construct()
{
parent::__construct();
if ($this->ajax) {
$this->content_only = true;
}
}
示例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;
}
示例5: __construct
public function __construct()
{
parent::__construct();
// Hide columns
$this->display_column_left = false;
$this->display_column_right = false;
}
示例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';
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->context = Context::getContext();
$this->ssl = true;
include_once $this->module->getLocalPath() . 'WishList.php';
}
示例8: __construct
public function __construct()
{
$this->display_column_left = false;
$this->display_column_right = false;
parent::__construct();
$this->context = Context::getContext();
}
示例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';
}
示例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';
}
示例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'));
}
示例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';
}
示例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();
}
}
示例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;
}
}
示例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();
}