「ver4/関数リファレンス/getParams」の版間の差分
提供: baserCMS公式ガイド
行26: | 行26: | ||
####出力 | ####出力 | ||
+ | <syntaxhighlight lang="html5"> | ||
http://basercms.net/news/index/example/test?name=value の場合 | http://basercms.net/news/index/example/test?name=value の場合 | ||
* 'plugin' => blog (利用しているプラグイン) | * 'plugin' => blog (利用しているプラグイン) | ||
行34: | 行35: | ||
* 'url' => 'news/index/fuga/hoge' | * 'url' => 'news/index/fuga/hoge' | ||
* 'here' => '/news/index/fuga/hoge' | * 'here' => '/news/index/fuga/hoge' | ||
− | + | </syntaxhighlight> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
2018年12月21日 (金) 02:29時点における版
[このコンテンツは内容調整中です]
説明
URLのパラメータ情報を返す。
使い方
<?php $this->BcBaser->getParams(); ?>
パラメータ
戻り値
- (array)
- URLのパラメータ情報の配列
用例
基本
URLのパラメータ情報の配列を表示する。
コード
<?php var_dump($this->BcBaser->getParams()); ?>
出力
http://basercms.net/news/index/example/test?name=value の場合 * 'plugin' => blog (利用しているプラグイン) * 'pass' => [0] => 'example' * [1] => 'test' * 'isAjax' => (boolean)false * 'query' => 'name' => 'value' * 'url' => 'news/index/fuga/hoge' * 'here' => '/news/index/fuga/hoge'