【CakePHP2】HtmlHelperでクエリパラメータリンクを出力する
- CakePHP
- 2.8.0
以下のコードで/test/index?query1=1&query2=2となります。
<?php
echo $this->Html->link('クエリ', array(
'controller' => 'test',
'action' => 'index',
'?' => array(
'query1' => 1,
'query2' => 2
)
));