This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
kiwi
Hi Fellas!!
I have a problem when I try to filter the listRender(). I have a different controllers and models for cities in my plugin.. this cities match into the same table. But I don't know how to set my listRender() for return only results with the conditional. Example, for auckland I need city = 'auckland' for default.
Last updated
kiwi
In the controller:
public function listExtendQuery($query, $definition = null)
{
$query->where('city', '=', 'auckland');
}
EASY! :)
1-3 of 3