當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。