• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to call CI specific functions on view files?

#1
[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

#2
[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/

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.