「ver4/関数リファレンス/getSiteName」の版間の差分
提供: baserCMS公式ガイド
Katokaisya (トーク | 投稿記録) |
|||
(同じ利用者による、間の3版が非表示) | |||
行2: | 行2: | ||
## 説明 | ## 説明 | ||
− | + | 管理画面のサイト基本設定のWEBサイト名を取得する。<br> | |
+ | '''管理画面 > システム設定メニュー > サイト基本設定 > WEBサイト名''' から変更できます。 | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->getSiteName(); | + | <?php $this->BcBaser->getSiteName(); ?> |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
## 戻り値 | ## 戻り値 | ||
行20: | 行18: | ||
## 用例 | ## 用例 | ||
### 基本 | ### 基本 | ||
+ | WEBサイト名を取得し、echoで出力する。 | ||
####コード | ####コード | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
行26: | 行25: | ||
####出力 | ####出力 | ||
− | + | <syntaxhighlight lang="html5"> | |
− | + | baserCMS inc. | |
− | + | </syntaxhighlight> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
##類似の関数 | ##類似の関数 | ||
− | + | - [siteName](/ver4/関数リファレンス/siteName) - WEBサイト名を出力する | |
− | + | ||
− | [ | + |
2019年1月14日 (月) 23:47時点における最新版
[このコンテンツは内容調整中です]
説明
管理画面のサイト基本設定のWEBサイト名を取得する。
管理画面 > システム設定メニュー > サイト基本設定 > WEBサイト名 から変更できます。
使い方
<?php $this->BcBaser->getSiteName(); ?>
戻り値
- (string)
- サイト基本設定のWEBサイト名
用例
基本
WEBサイト名を取得し、echoで出力する。
コード
<?php echo $this->BcBaser->getSiteName(); ?>
出力
baserCMS inc.
類似の関数
- siteName - WEBサイト名を出力する