Hey, I've got an element that does a requestAction to grab records sorted by date.
What I haven't been able to workout/find is how to restrict it to only include records who's date is after now.
For example, in my element I something similar to:
$stuff = $this->requestAction('stuff/get_stuff/sort:my_date/direction:asc');
How should I go about restricting it to only records with my_date after now?
Is their another param I should add or is there something I could add into a find(...)
call in my get_stuff
action in controller stuff
?
Advice or a friendly nudge in the right direction would be grateful!