Welcome Guest, Not a member yet? Register   Sign In
How to display a view on all controllers?
#1

[eluser]Popescu Mihaela[/eluser]
Hi guys, I am trying do display some info in the sidebar, like users activity. The problem is that I have different controllers for different pages, like /member/, /category/, /page/, /video/... and I do not know how to load the view for that sidebar, but I do not want to load it in every controller. Is there a way to do this?
#2

[eluser]WanWizard[/eluser]
Search for base controllers, and use a template library.
#3

[eluser]Carmichael[/eluser]
[quote author="WanWizard" date="1333270001"]Search for base controllers, and use a template library.[/quote]
I can not find a library that works to the latest version of CodeIgniter.
I found this http://williamsconcepts.com/ci/codeignit...nload.html but it's from late 08.
#4

[eluser]solid9[/eluser]
call the sidebar in your view directly.
#5

[eluser]solid9[/eluser]
Or extend all controller from parent.




Theme © iAndrew 2016 - Forum software by © MyBB