This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi all,
I have created a list of items to do something. Each time i have created an item, it is added to the main list. When i select on an item, it will move to a next page where i can key in something while internally in the model i can get the current id of that item.
The problem is when i use afterFetch() in the model, it fetches all the id from the main listed, even before i have select a item. I only wish get the id of the select item and use it perform some other things. Please help. Thanks
Here is my code:
public function afterFetch() { $id = $this->id; //Do something with the id }
Last updated
1-1 of 1