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


PHP Tool::getUrl方法代码示例

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


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

示例1: index

 public function index()
 {
     $this->tpl->assign('frontTenNav', $this->nav->getFrontTenNav());
     $this->tpl->assign('history', $this->goods->getHistory());
     $this->tpl->assign('url', Tool::getUrl(true));
     $this->tpl->assign('GoodsCompare', $this->goods->getGoodsCompare());
     $this->tpl->assign('cartGoodsCount', $this->cart->getCount());
     $this->tpl->display(FRONT_STYLE . 'public/compare.tpl');
 }
开发者ID:zhendeguoke1008,项目名称:shop-1,代码行数:9,代码来源:CompareAction.class.php

示例2: index

 public function index()
 {
     parent::page(15, $this->_goods);
     $this->_tpl->assign('ListGoods', $this->_goods->findListGoods());
     $this->_tpl->assign('FrontNav', $this->_nav->findFrontNav());
     $this->_tpl->assign('FrontTenNav', $this->_nav->findFrontTenNav());
     $this->_tpl->assign('FrontPrice', $this->_nav->findFrontPrice());
     $this->_tpl->assign('FrontBrand', $this->_nav->findFrontBrand());
     $this->_tpl->assign('FrontAttr', $this->_nav->findFrontAttr());
     $this->_tpl->assign('FrontRecord', $this->_goods->getRecord());
     $this->_tpl->assign('NavSort', $this->_goods->navSort());
     $this->_tpl->assign('url', Tool::getUrl());
     $this->_tpl->display(SMARTY_FRONT . 'public/list.tpl');
 }
开发者ID:yjf0503,项目名称:Mall,代码行数:14,代码来源:ListAction.class.php

示例3: getCurrentMenu

 /**
  * Page en cours dans une liste ( ajout de la classe current )
  * @param array la liste de pages à comparer 
  */
 public static function getCurrentMenu($pages)
 {
     $current = Tool::getUrl();
     foreach ($pages as $page) {
         if (!is_numeric($page) && $current == $page) {
             return 'current';
         } else {
             $pageUrl = isset($_GET['page']) ? $_GET['page'] : '';
             if ($pageUrl == $page) {
                 return 'current';
             }
         }
     }
 }
开发者ID:kiou,项目名称:DevKit2016,代码行数:18,代码来源:Menu.php

示例4: index

 public function index($array = null)
 {
     $this->page(15, $this->goods);
     $this->tpl->assign('listGoods', $this->goods->getListGoods());
     $this->tpl->assign('oneFrontNav', $this->nav->getFrontNav());
     $this->tpl->assign('frontTenNav', $this->nav->getFrontTenNav());
     $this->tpl->assign('frontPrice', $this->nav->getFrontPrice());
     $this->tpl->assign('frontBrand', $this->nav->getFrontBrand());
     $this->tpl->assign('frontAttr', $this->nav->getFrontAttr());
     $this->tpl->assign('history', $this->goods->getHistory());
     $this->tpl->assign('hotSale', $this->goods->getHotSale());
     $this->tpl->assign('url', Tool::getUrl(true));
     $this->tpl->assign('brandUrl', Tool::getUrl(false, true, false));
     $this->tpl->assign('cartGoodsCount', $this->cart->getCount());
     $this->tpl->assign('priceUrl', Tool::getUrl(false, false, true));
     $this->tpl->display(FRONT_STYLE . 'public/list.tpl');
 }
开发者ID:zhendeguoke1008,项目名称:shop-1,代码行数:17,代码来源:ListAction.class.php


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