「ver4/関数リファレンス/getSiteSearchForm」の版間の差分
提供: baserCMS公式ガイド
Katokaisya (トーク | 投稿記録) |
Katokaisya (トーク | 投稿記録) |
||
行5: | 行5: | ||
## 使い方 | ## 使い方 | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
− | $this->BcBaser->getSiteSearchForm(); | + | $this->BcBaser->getSiteSearchForm( [$data] , [$options] ); |
</syntaxhighlight> | </syntaxhighlight> | ||
2016年11月4日 (金) 18:20時点における版
目次
説明
サイト内検索フォームを取得
使い方
$this->BcBaser->getSiteSearchForm( [$data] , [$options] );
パラメータ
- (array) $data 読み込むテンプレートに引き継ぐパラメータ(初期値 : array())
- (array) $options オプション(初期値 : array())
- ※ その他のパラメータについては、View::element() を参照
戻り値
(string)
用例
基本
コード
<?php echo $this->BcBaser->getSiteSearchForm(); ?>