我在旧版本4.03和4.b1中使用方法addQuickSearch()没问题但是现在,当我使用$ g-> addquickSearch(array('field1','field2'))时屏幕上的结果我访问的页面是
BaseException
Trying to get value of not-existing field: q
/var/www/soporte/atk4/lib/BaseException.php:42
Stack trace:
/var/www/soporte/atk4/lib/BaseException.php :42 BaseException BaseException->collectBasicData(Null, 1, 0)
/var/www/soporte/atk4/lib/Form/Basic.php :187 BaseException BaseException->__construct("Trying to get value of not-existing field: q")
/var/www/soporte/atk4/lib/QuickSearch.php :97 sample_project_regla_grid_quicksearch Form_Basic->get("q")
/var/www/soporte/atk4/lib/Filter.php :59 sample_project_regla_grid_quicksearch QuickSearch->applyDQ(Object(DBlite_dsql))
/ : sample_project_regla_grid_quicksearch Filter->applyHook()
/var/www/soporte/atk4/lib/AbstractObject.php :337 call_user_func_array(Array(2), Array(0))
/var/www/soporte/atk4/lib/ApiWeb.php :204 sample_project AbstractObject->hook("post-submit")
/var/www/soporte/index.php :15 sample_project ApiWeb->main()
有什么变化?
旧版本中的api引用与此不同。
由于