I realize this might be a bit old now, but still awesome to read and helped me lots. Thanks Rishav.
How would one go about refreshing the view after an event occurs?
Say for example I have a list of items, each with it's own "Delete" button.
The button- event handler is placed in the after_render() section of the view/page. How can I access methods of my Class inside the event handler ? Or what would you "fire" or execute to get the class data to respond to that, update the array and remove it from the view?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I realize this might be a bit old now, but still awesome to read and helped me lots. Thanks Rishav.
How would one go about refreshing the view after an event occurs?
Say for example I have a list of items, each with it's own "Delete" button.
The button- event handler is placed in the after_render() section of the view/page. How can I access methods of my Class inside the event handler ? Or what would you "fire" or execute to get the class data to respond to that, update the array and remove it from the view?