Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
CodeIgniter 4
CodeIgniter 4 Support
Making data available in ALL views
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
Making data available in ALL views
InsiteFX
Super Moderator
Posts:
6,576
Threads:
331
Joined:
Oct 2014
Reputation:
240
#4
06-15-2021, 01:21 AM
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?
W
hat did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Reply
Messages In This Thread
Making data available in ALL views
- by
SoccerGuy3
- 06-14-2021, 03:50 PM
RE: Making data available in ALL views
- by
paulkd
- 06-14-2021, 10:02 PM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 06:57 AM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 07:14 AM
RE: Making data available in ALL views
- by
ikesela
- 06-15-2021, 12:25 AM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 07:00 AM
RE: Making data available in ALL views
- by
InsiteFX
- 06-15-2021, 01:21 AM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 07:04 AM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 07:15 AM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 07:18 AM
RE: Making data available in ALL views
- by
paulkd
- 06-15-2021, 12:48 PM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-15-2021, 12:59 PM
RE: Making data available in ALL views
- by
InsiteFX
- 06-15-2021, 08:53 PM
RE: Making data available in ALL views
- by
SoccerGuy3
- 06-16-2021, 07:09 AM
RE: Making data available in ALL views
- by
najdanovicivan
- 06-16-2021, 03:52 PM
RE: Making data available in ALL views
- by
wuuyun
- 06-16-2021, 11:54 PM
RE: Making data available in ALL views
- by
MGatner
- 06-17-2021, 05:55 AM
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB