I have a view and I want to display data that would be generated by othe modules and controllers on the page.
What is the best way to do this?
For example: If on a certain page I want to pull in the latest news from the news module.
There's a view helper called Action which allows you to call another controller's action (and display the markup generated).
I would add an action called latestNewsAction that renders a latest news panel/div/list and call that using the action view helper.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With