本文整理汇总了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');
}
示例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');
}
示例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';
}
}
}
}
示例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');
}