I have a layout file and many controller for every job.
------------------------------
| {menuController/index} |
| |
-------------------------------
| {slideshowController/index} |
-------------------------------
| {footerController/index} |
-------------------------------
postController/index
for show all post into home page.
menuController/index
for show menu into top of home page.
... footerController
,slideshowController
and so on.
I will use same
{{postController/index}}
{{menuController/index}}
{{footerController/index}}
Inject to Html of Layout.php file.
footerController/index
that's call index function of footerController
so return Html of View related to it.
I put in the Layout where appropriate. How do I do this?
Do you have another solution?