Welcome Guest, Not a member yet? Register   Sign In
Getting other data output to view
#1

[eluser]elmne[/eluser]
I need help here.

If I have a view that has a link in it which points to a controller that when clicked, will use the ID within the link to return the appropriate article from the database, then load a view to display that article,

how do i get the view that is loaded to display the article, to then also display other content on the same page/view?

For instance, i want to use a view as a template which has a logo, banner, menu, footer. Now, each of these items are processed using given functions, for instance the menu would have to be processed by a menu function then it's data passed to the view to be displayed in the menu area. How do i get the menu to be processed and also passed to the same view template that will display the article linked to?
#2

[eluser]InsiteFX[/eluser]
Use a MY_Controller.

Creating Core System Classes

InsiteFX
#3

[eluser]elmne[/eluser]
So when i extend the controller using MY_Controller, how would it work?

Do i put functions in MY_Controller within the library to display content for other areas?

Where does the template get loaded?




Theme © iAndrew 2016 - Forum software by © MyBB