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

Design question: database prefix related

Development and Programming

nixMe's avatar
nixMe
6 posts
17 years ago
nixMe's avatar nixMe

Just wondering if anyone actually uses this parameter in their modules (ie. $DB->prefix). It seems that every module I’ve come across every query written is exp_{table_name}. I would think this prefix should be variable based on settings since it is possible to change on installation.

Anyway, I basically set defined constant at the top of each module file and use that in all my queries. Is that against the coding standard for EE? I’ve read the guidelines and it doesn’t look like it would be.

       

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.