You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now you can call $this->listRender($options) from within a controller partial with the parameter list_render_filters => true which doesn't exactly make sense. If the list you are rendering is a different model then the one used in the controller, the filters that get used are the controller ones not the ones you would expect to go with that model. Secondly, no methods exist to apply the filters selected in the list_custom_prepare_func since the filter code is again checking the controller.
I am not sure of a solution for this yet. Perhaps you could pass in the list render filters to be applied and a method in the filter behavior to overload the settings.
Right now you can call
$this->listRender($options)
from within a controller partial with the parameterlist_render_filters => true
which doesn't exactly make sense. If the list you are rendering is a different model then the one used in the controller, the filters that get used are the controller ones not the ones you would expect to go with that model. Secondly, no methods exist to apply the filters selected in thelist_custom_prepare_func
since the filter code is again checking the controller.I am not sure of a solution for this yet. Perhaps you could pass in the list render filters to be applied and a method in the filter behavior to overload the settings.
Maybe it would be better to look at rendering another controller within the controller? Then all the list, filter, ad other behaviors would work.
The text was updated successfully, but these errors were encountered: