個人用ツール

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

提供: baserCMS公式ガイド

移動: 案内, 検索
行7: 行7:
 
## 使い方
 
## 使い方
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
$this->BcBaser->getSiteUrl( $ssl );
+
<?php $this->BcBaser->getSiteUrl( $ssl ); ?>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
## パラメータ
 
## パラメータ
(boolean) $ssl  
+
(bool) $ssl  
:初期値 : false
+
: - 初期値 : false
  
 
## 戻り値
 
## 戻り値
行21: 行21:
 
## 用例
 
## 用例
 
### 基本
 
### 基本
 +
サイトURLを取得し、echoで出力する。
 
####コード
 
####コード
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
行45: 行46:
  
 
##類似の関数
 
##類似の関数
 
+
- [siteUrl](/ver4/関数リファレンス/siteUrl) - WEBサイトURLを出力する
  
 
[[Category:関数リファレンスver4]]
 
[[Category:関数リファレンスver4]]

2018年11月21日 (水) 00:15時点における版

[このコンテンツは内容調整中です]

説明

WEBサイトURLを取得する。

使い方

<?php $this->BcBaser->getSiteUrl( $ssl ); ?>

パラメータ

(bool) $ssl
- 初期値 : false

戻り値

(string)
baserCMSがインストールされたWEBサイトのURL

用例

基本

サイトURLを取得し、echoで出力する。

コード

<?php echo $this->BcBaser->getSiteUrl(); ?>

出力

応用

コード

出力

変更履歴

ソースファイル

関連資料

類似の関数

  • siteUrl - WEBサイトURLを出力する