I'm trying to filter data in my view based on URL parameters. I'm currently using basic Yii Ajax search in my view, which uses $_POST
to get the results to display in CGridView
.
search()
method in my model is also a default one, using CDbCriteria
and compare()
to return CActiveDataProvider
based on criteria submitted via mentioned search in view.
The grand question here is:
How can I perform search via URL which would look like http://example.com/index.php/something/listAll?id=10&owner=numline1
?
Thanks!