「ver4/関数リファレンス/getCurrentPrefix」の版間の差分
提供: baserCMS公式ガイド
行9: | 行9: | ||
<?php $this->BcBaser->getCurrentPrefix(); ?> | <?php $this->BcBaser->getCurrentPrefix(); ?> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
## 戻り値 | ## 戻り値 |
2018年12月25日 (火) 03:22時点における版
[このコンテンツは内容調整中です]
説明
現在のサイトプレフィックスを取得する。
サブサイトを特定するサブフォルダやサブドメインを取得します。
使い方
<?php $this->BcBaser->getCurrentPrefix(); ?>
戻り値
- (string)
- 現在のサイトプレフィックス
用例
基本
現在のサイトプレフィックスを取得し、echoで出力する。
コード
<?php echo $this->BcBaser->getCurrentPrefix(); ?>