Welcome Guest, Not a member yet? Register   Sign In
Making data available in ALL views
#4

In your BaseController just load the helper through the helpers array
Then in your view just do this.

PHP Code:
<?= siteinfo();?>

Make sure that your helper is named siteinfo_helper.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Making data available in ALL views - by InsiteFX - 06-15-2021, 01:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB