ver4/関数リファレンス/getParams
提供: baserCMS公式ガイド
[このコンテンツは内容調整中です]
説明
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'