![]() |
#12
|
||||
|
||||
![]()
Well replace every {$prefix} by ".constant('PREFIX')." and it should work for you. The reason why we are using PHP constants is that we do not need to define superglobals for database information used in functions and classes. You do not see $GLOBALS['prefix'] anymore from functions in Mys v1.3.1. Once the User class is available we will get rid of more superglobals, although some superglobals will always remain, such as $GLOBALS['adopts'] since you cannot define a constant object.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New newbie joining in | destrovel | Newcomer Center | 2 | 09-14-2014 11:18 AM |
Shop Tables | SilverDragonTears | Questions and Supports | 1 | 02-02-2013 03:26 PM |
More fetching from tables help | SilverDragonTears | Questions and Supports | 4 | 04-30-2012 03:00 PM |
Tables | StarGirl | Questions and Supports | 3 | 04-26-2012 02:57 PM |
Joining Usergroups | Cindykt | Questions and Supports | 1 | 08-19-2011 09:25 PM |
What's New? |
What's Hot? |
What's Popular? |