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