「ver4/関数リファレンス/title」の版間の差分
提供: baserCMS公式ガイド
(ページの作成:「## 説明 タイトルタグを出力する ## 使い方 <syntaxhighlight lang="php"> $this->BcBaser->title($separator , $categoryTitleOn ); </syntaxhighlight> ## パ...」) |
Katokaisya (トーク | 投稿記録) |
||
行9: | 行9: | ||
## パラメーター | ## パラメーター | ||
− | + | (string) $separator | |
− | (例)$separator = '|' | + | : 区切り文字 |
+ | :(例)$separator = '|' | ||
− | + | (string) $categoryTitleOn | |
+ | : カテゴリを表示するかどうか boolean で指定 | ||
## 用例 | ## 用例 |
2016年11月4日 (金) 22:54時点における版
目次
説明
タイトルタグを出力する
使い方
$this->BcBaser->title($separator , $categoryTitleOn );
パラメーター
- (string) $separator
- 区切り文字
- (例)$separator = '|'
用例
基本
コード
<?php $this->BcBaser->title($separator = '|' , $categoryTitleOn = null ) ?>
出力
<title>サンプルタイトル | サンプル株式会社</title>