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


PHP URL::page方法代码示例

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


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

示例1: getDateLink

 public function getDateLink($dateArray = null)
 {
     if ($this->cTargetID) {
         $c = \Page::getByID($this->cTargetID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($dateArray) {
         return \URL::page($c, $dateArray['year'], $dateArray['month']);
     } else {
         return \URL::page($c);
     }
 }
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:13,代码来源:controller.php

示例2: getTopicLink

 public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null)
 {
     if ($this->cParentID) {
         $c = \Page::getByID($this->cParentID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($topic) {
         $nodeName = $topic->getTreeNodeName();
         $nodeName = strtolower($nodeName);
         // convert to lowercase
         $nodeName = Core::make('helper/text')->encodePath($nodeName);
         // urlencode
         return \URL::page($c, 'topic', $topic->getTreeNodeID(), $nodeName);
     } else {
         return \URL::page($c);
     }
 }
开发者ID:masteramuk,项目名称:concrete5,代码行数:18,代码来源:controller.php

示例3:

            echo $pID;
            ?>
">
            <div class="cart-list-thumb">
                <a href="<?php 
            echo URL::page(Page::getByID($product->getProductPageID()));
            ?>
">
                    <?php 
            echo $product->getProductImageThumb();
            ?>
                </a>
            </div>
            <div class="cart-list-product-name">
                <a href="<?php 
            echo URL::page(Page::getByID($product->getProductPageID()));
            ?>
">
                    <?php 
            echo $product->getProductName();
            ?>
                </a>
            </div>
            
            <div class="cart-list-item-price">
                <?php 
            echo Price::format($product->getProductPrice());
            ?>
            </div>
            <div class="cart-list-product-qty">
                <span class="cart-item-label"><?php 
开发者ID:Janoinen,项目名称:vivid_store,代码行数:31,代码来源:cart.php

示例4: t

                <?php 
    echo $form->label('ftTypeHeight', t('Height'));
    ?>
                <?php 
    echo $form->text('ftTypeHeight', $ftTypeHeight);
    ?>
            </div>
            <div class="alert alert-info"><i class="fa fa-exclamation-circle"></i> <?php 
    echo t('Only place a value in here if you want this thumbnail to force its dimensions to the width and height.');
    ?>
</div>
        </fieldset>
        <div class="ccm-dashboard-form-actions-wrapper">
            <div class="ccm-dashboard-form-actions">
                <a href="<?php 
    echo URL::page($c);
    ?>
" class="btn pull-left btn-default"><?php 
    echo t('Back');
    ?>
</a>
                <?php 
    if (is_object($type)) {
        ?>
                    <button type="submit" class="btn btn-primary pull-right"><?php 
        echo t('Save');
        ?>
</button>
                <?php 
    } else {
        ?>
开发者ID:yakamoz-fang,项目名称:concrete,代码行数:31,代码来源:thumbnails.php

示例5: testCanonicalUrlWithPort

 public function testCanonicalUrlWithPort()
 {
     Config::set('concrete.seo.canonical_url', 'http://www.derpco.com:8080');
     $this->clearCanonicalUrl();
     $this->assertEquals('http://www.derpco.com:8080/path/to/server/index.php/dashboard/my/awesome/page', (string) URL::to('/dashboard/my/awesome/page'));
     $this->assertEquals('http://www.derpco.com:8080/path/to/server/index.php/dashboard/my/awesome/page', (string) URL::page($this->dashboard));
     Config::set('concrete.seo.canonical_url', null);
 }
开发者ID:digideskio,项目名称:concrete5,代码行数:8,代码来源:URLTest.php

示例6: array

        @Loader::element('attribute/categories/' . $category->getAttributeKeyCategoryHandle(), array('key' => $key));
    }
    ?>

<?php 
}
?>

<?php 
echo $valt->output('add_or_update_attribute');
$type->render(new \Concrete\Core\Attribute\Context\AttributeTypeSettingsContext(), $key);
?>

<?php 
if (!isset($back)) {
    $back = URL::page($c);
}
?>

<div class="ccm-dashboard-form-actions-wrapper">
<div class="ccm-dashboard-form-actions">
	<a href="<?php 
echo $back;
?>
" class="btn pull-left btn-default"><?php 
echo t('Back');
?>
</a>
<?php 
if (is_object($key)) {
    ?>
开发者ID:ppiedaderawnet,项目名称:concrete5,代码行数:31,代码来源:type_form_required.php

示例7: getTagLink

 public function getTagLink(Option $option = null)
 {
     $target = $this->get('target');
     if (!is_object($target)) {
         $target = \Page::getCurrentPage();
     }
     if ($option) {
         return \URL::page($target, 'tag', strtolower($option->getSelectAttributeOptionDisplayValue()));
     } else {
         return \URL::page($target);
     }
 }
开发者ID:ceko,项目名称:concrete5-1,代码行数:12,代码来源:controller.php

示例8: redirect

 function redirect($link, $extra = array(), $clean = false)
 {
     $url = new URL();
     $url->initCurURL();
     if ($clean) {
         $url->clean();
     }
     $url->page($link);
     foreach ($extra as $key => $value) {
         $url->setGet($key, $value);
     }
     return $url->getUrl();
 }
开发者ID:Kjir,项目名称:amsn,代码行数:13,代码来源:url.class.php

示例9: getTopicLink

 public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null)
 {
     if ($this->cParentID) {
         $c = \Page::getByID($this->cParentID);
     } else {
         $c = \Page::getCurrentPage();
     }
     if ($topic) {
         return \URL::page($c, 'topic', strtolower($topic->getTreeNodeDisplayName()));
     } else {
         return \URL::page($c);
     }
 }
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:13,代码来源:controller.php


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