「関数リファレンス/BcBaser getBaseUrl」の版間の差分
提供: baserCMS公式ガイド
行6: | 行6: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->getBaseUrl(); | + | <?php $this->BcBaser->getBaseUrl(); ?> |
</syntaxhighlight> | </syntaxhighlight> | ||
2015年4月22日 (水) 17:15時点における版
目次
説明
ベースとなるURLを取得する。
サブフォルダやスマートURLについて考慮されている事が前提。
使い方
<?php $this->BcBaser->getBaseUrl(); ?>
パラメータ
なし
戻り値
- (文字列)
- ベースURL(baserCMSの設置フォルダの絶対パス)
用例
基本
コード
<a href="<?php echo $this->BcBaser->getBaseUrl()?>company/">会社概要</a>