php - How can I get array from GET request? -
i have trouble: have url of view:
?materials=1&materials=2&materials=3&materials=4&materials=5&materials=6
how can in array throw yii mechanism?
yii::app()->request->getparam('materials')
not working
$_get['materials']
too not working
url static , can not change
this url created https://github.com/mikhus/jsurl plugin
php automatically parses parameter array, if ends []
. (i.e. ?materials[]=1&materials[]=2&materials[]=3&materials[]=4&materials[]=5&materials[]=6
) otherwise can parse query string manually solve issue. @ this
Comments
Post a Comment