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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.