CodeIgniter Forums
How to call CI specific functions on view files? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: How to call CI specific functions on view files? (/showthread.php?tid=11367)



How to call CI specific functions on view files? - El Forum - 09-05-2008

[eluser]cyberbuff[/eluser]
Hello,
I have a common header. I want to show some data to the view file (ie header_view.php). I can always pass data to it from controllers. but in that way, i am repeating myself a lot. Is there any way to call CI specific functions on view files?
Regards
Abhisek


How to call CI specific functions on view files? - El Forum - 09-05-2008

[eluser]missionsix[/eluser]
Are you inferring that you have common data being generated that gets displayed in the header file?

If so, you might want to have a look at this thread:

http://ellislab.com/forums/viewthread/89875/


How to call CI specific functions on view files? - El Forum - 09-06-2008

[eluser]cyberbuff[/eluser]
thnx missionsix, that is really helpful. I should have searched the forum with "dyanamic" or things like that.