I don’t understand the difference between using _search.php in index.php and put some filter upside the column with GridView: the result is the same.
Maybe with complicated search and more database, with _search is more simple ?
Thanks
I don’t understand the difference between using _search.php in index.php and put some filter upside the column with GridView: the result is the same.
Maybe with complicated search and more database, with _search is more simple ?
Thanks
You are right, @Drugo66
For relatively simple conditions, they work almost in the same way. And as they both call the controller action in the same manner, you don’t have to write the different code for searching in the search model’s search()
function.