個人用ツール

「関数リファレンス/BcBaser getBaseUrl」の版間の差分

提供: baserCMS公式ガイド

移動: 案内, 検索
(Hanhunhun がページ「関数リファレンス/getBaseUrl」を「関数リファレンス/BcBaser getBaseUrl」に移動しました)
(相違点なし)

2015年5月11日 (月) 13:01時点における版

説明

ベースとなるURLを取得する。

サブフォルダやスマートURLについて考慮されている事が前提。

使い方

<?php $this->BcBaser->getBaseUrl(); ?>

パラメータ

なし

戻り値

(文字列)
ベースURL(baserCMSの設置フォルダの絶対パス)

用例

基本

コード

<a href="<?php echo $this->BcBaser->getBaseUrl()?>company/">会社概要</a>

応用

コード

 

出力

変更履歴

ソースファイル

関連資料