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
Archived Discussions
Archived Development & Programming
How to get database configuration variable from within application?
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
How to get database configuration variable from within application?
El Forum
Guest
#1
01-24-2011, 01:49 PM
[eluser]gidarren[/eluser]
Hey all, I am trying to get the database prefix I have set so I can make my joins flexible. How can I get the database prefix that I have set? Thanks.
El Forum
Guest
#2
01-24-2011, 01:56 PM
[eluser]gidarren[/eluser]
I have found $this->CI->db->dbprefix, is this correct (I am using it from a hook).
El Forum
Guest
#3
01-24-2011, 04:35 PM
[eluser]InsiteFX[/eluser]
Yes that holds your database prefix.
InsiteFX
--------------------
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