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


PHP FrontController::canonicalRedirection方法代码示例

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


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

示例1: canonicalRedirection

 public function canonicalRedirection()
 {
     if (Configuration::get('PS_CANONICAL_REDIRECT') && strtoupper($_SERVER['REQUEST_METHOD']) == 'GET' && !Tools::getValue('ajax') && !Tools::getIsset('ps_mobile_site') && !Tools::getIsset('add') && !Tools::getIsset('update') && !Tools::getIsset('delete')) {
         $this->php_self = Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 ? 'order-opc.php' : 'order.php';
         parent::canonicalRedirection();
     }
 }
开发者ID:Evil1991,项目名称:PrestaShop-1.4,代码行数:7,代码来源:CartController.php

示例2: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms, $this->cms->link_rewrite, $this->ssl))) {
         parent::canonicalRedirection($canonicalURL);
     } elseif (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category))) {
         parent::canonicalRedirection($canonicalURL);
     }
 }
开发者ID:M03G,项目名称:PrestaShop,代码行数:8,代码来源:CmsController.php

示例3: canonicalRedirection

 public function canonicalRedirection($canonical_url = '')
 {
     if (Tools::getValue('live_edit')) {
         return;
     }
     if (Validate::isLoadedObject($this->product)) {
         parent::canonicalRedirection($this->context->link->getProductLink($this->product));
     }
 }
开发者ID:zangles,项目名称:lennyba,代码行数:9,代码来源:ProductController.php

示例4: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (Tools::getValue('live_edit')) {
         return;
     }
     if (Validate::isLoadedObject($this->manufacturer)) {
         parent::canonicalRedirection($this->context->link->getManufacturerLink($this->manufacturer));
     }
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:9,代码来源:ManufacturerController.php

示例5: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop()) {
         $this->redirect_after = '404';
         $this->redirect();
     }
     if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category)) {
         parent::canonicalRedirection($this->context->link->getCategoryLink($this->category));
     }
 }
开发者ID:jicheng17,项目名称:vipinsg,代码行数:10,代码来源:CategoryController.php

示例6: canonicalRedirection

 /**
  * Redirects to canonical or "Not Found" URL
  *
  * @param string $canonical_url
  */
 public function canonicalRedirection($canonical_url = '')
 {
     if (Tools::getValue('live_edit')) {
         return;
     }
     if (!Validate::isLoadedObject($this->category) || !$this->category->inShop() || !$this->category->isAssociatedToShop() || in_array($this->category->id, array(Configuration::get('PS_HOME_CATEGORY'), Configuration::get('PS_ROOT_CATEGORY')))) {
         $this->redirect_after = '404';
         $this->redirect();
     }
     if (!Tools::getValue('noredirect') && Validate::isLoadedObject($this->category)) {
         parent::canonicalRedirection($this->context->link->getCategoryLink($this->category));
     }
 }
开发者ID:satanicman,项目名称:Pizzushi.loc,代码行数:18,代码来源:CategoryController.php

示例7: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (Tools::getValue('live_edit')) {
         return;
     }
     if (Validate::isLoadedObject($this->supplier)) {
         if (Validate::isLoadedObject($this->category)) {
             parent::canonicalRedirection($this->context->link->getSupplierProductLinkByCategory($this->supplier->id, $this->category->id));
         } else {
             parent::canonicalRedirection($this->context->link->getSupplierLink($this->supplier));
         }
     }
 }
开发者ID:yewed,项目名称:share,代码行数:13,代码来源:SupplierController.php

示例8: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (Tools::getValue('live_edit')) {
         return;
     }
     if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms))) {
         parent::canonicalRedirection($canonicalURL);
     } else {
         if (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category))) {
             parent::canonicalRedirection($canonicalURL);
         }
     }
 }
开发者ID:rongandat,项目名称:vatfairfoot,代码行数:13,代码来源:CmsController.php

示例9: canonicalRedirection

 public function canonicalRedirection($canonical_url = '')
 {
     if (Validate::isLoadedObject($this->product)) {
         parent::canonicalRedirection($this->context->link->getProductLink($this->product));
     }
 }
开发者ID:rrameshsat,项目名称:Prestashop,代码行数:6,代码来源:ProductController.php

示例10: canonicalRedirection

 protected function canonicalRedirection($canonical_url = '')
 {
     parent::canonicalRedirection();
 }
开发者ID:evilscripts,项目名称:gy,代码行数:4,代码来源:SellerLocationController.php

示例11: canonicalRedirection

 public function canonicalRedirection($canonicalURL = '')
 {
     if (Validate::isLoadedObject($this->manufacturer)) {
         parent::canonicalRedirection($this->context->link->getManufacturerLink($this->manufacturer));
     }
 }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:6,代码来源:ManufacturerController.php


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