Answer the question
In order to leave comments, you need to log in
How can I get all the parameters passed to the controller as an array?
Good day.
There is a wonderful thing in Yii - Beautiful URLs that I want to install. But there is a problem. Previously, all filtering parameters for me came via GET, and to simplify the work, I did something like this in the View (simplified for clarity):
foreach(....){
$_GET['filter']=$value;
$link=$this->createUrl('models/showModels',$_GET);
echo CHtml::link(Yii::t('main',$value),$link);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question