I have a view, and I want to display the data that will be generated by the modules and controllers on the page.
What is the best way to do this?
For example: if on a specific page I want to extract the latest news from the news module.
There is an Action view helper here that allows you to invoke another controller action (and display markup).
I would add an action called latestNewsAction that displays the latest news panel / div / list and invokes it using the action view helper.
Source: https://habr.com/ru/post/1710201/More articles:Access Firefox Cache from XPCOM Component - c ++What does error 0xC02020C4 mean in SSIS? - sql-serverWebResource.axd - Invalid ViewState - asp.netEvent with AS3 text field change without fail - eventsWindows workflow: starting a separate workflow from a workflow - workflowКак заставить HttpCompression (GZip) работать с URL-маршрутизацией (без дополнительных URL-адресов) на IIS 6 - asp.netHow to connect to double-clicking the Ctrl key? - .netHow to evaluate Apache with delays? - performanceIs there a way to add two bytes with overflow in python? - pythonHow to make Android’s “Home” shortcut bypass an app pointing to a story? - androidAll Articles