「ver4/関数リファレンス/BcBaser header」の版間の差分
提供: baserCMS公式ガイド
Webbingstudio (トーク | 投稿記録) 細 |
Webbingstudio (トーク | 投稿記録) 細 |
||
行1: | 行1: | ||
− | |||
− | |||
## 説明 | ## 説明 | ||
ヘッダーテンプレートを出力する。 | ヘッダーテンプレートを出力する。 |
2018年6月28日 (木) 13:44時点における版
説明
ヘッダーテンプレートを出力する。
使用中のテーマ内の /Elements/header.php を読み込む。対象となるファイルは事前に作成しておく必要がある。
使い方
$this->BcBaser->header([$data], [$options]);
パラメータ
- (array) $data
- エレメントで参照するデータを指定する。
- array('変数名'=>'値')
- 初期値:array()
- (array)$options
- オプションのパラメータ
- 初期値:array()
subDir
(boolean) エレメントのパスについてプレフィックスによるサブディレクトリを追加するかどうか- ※ その他のパラメータについては、View::element() を参照
戻り値
用例
基本
コード
<?php $this->BcBaser->header() ?>
出力
(ヘッダーテンプレートの内容)