We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE2.0PB: Plugin Question: database.php in package config folder?

Development and Programming

Lutherand's avatar
Lutherand
6 posts
16 years ago
Lutherand's avatar Lutherand

Is there any way that a database.php file can be seen in the config folder (third_party/xxxxx/config) that plugins and modules can use? I didn’t see any documentation on this and could only find documentation on adding config.php. I tried it and got an error that the database group could not be found.

Thanks in advance!

Moved to Plugins by Moderator

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Lutherand, what is it you’re trying to accomplish? Are you working on your own addon of some sort?

       
Lutherand's avatar
Lutherand
6 posts
16 years ago
Lutherand's avatar Lutherand

Sue, thanks for the reply.

I am creating my own plugin (add-on) in EE 2.0. I am pulling data from one of the clients databases to display in a table on a number of pages on their website which will be in EE 2.0. I noticed in the add-on package folder structure that there is a config folder but when I put a database.php file in the config folder it does not get loaded using the

$this->db->load->database('group_name')

command. The error says the database group cannot be found.

Thanks.

Luther

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Honestly, I have no idea. I haven’t delved into making plugins in 2.0 yet. We don’t provide direct support for these kinds of questions, so I’m moving this thread.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.