個人用ツール

「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>
## 注
+
 
+
## 変更履歴
+
 
+
## ソースファイル
+
 
+
## 関連資料
+
 
+
##類似の関数
+
 
+
 
+
[[Category:関数リファレンスver4]]
+

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'