Avoid to list all records on empty search in YII Admin page -
in yii admin page (crud), default records of table displayed when searching empty data in fields.
but need avoid default list. instead, data need entered in filter text box. search result should shows result based on input. otherwise no record should displayed.
thanks in advance.
in search
function model replace $criteria->compare(....
cdbcriteria
methods add same condition. compare
method 1 doesn't add condition expression criteria if attribute empty.
Comments
Post a Comment