I made a typo. The correct new format is:
Config::set( 'db_connection',
array(
    'connection_string'=>'mysql:host=*host*;dbname=*database*',
    'username'=>'*username*',
    'password'=>'*password*',
    'prefix'=>'habari__'
)
);

Sorry about that :)

Ali B / dmondark
http://www.awhitebox.com

On Mar 14, 9:53 pm, "Ali B." <[email protected]> wrote:
> Hello All,
>
> Please refere to the habari-dev post forwarded below. Revision 3309 changed
> the way config files are set. Make sure you change the following part of
> your config.php file before you svn up:
>
> $db_connection = array(
>     'connection_string'=>'mysql:host=*host*;dbname=*database*',
>     'username'=>'*username*',
>     'password'=>'*password*',
>     'prefix'=>'habari__'
> );
>
> with this:
>
> Config::set( 'db_connection',
> $db_connection = array(
>     'connection_string'=>'mysql:host=*host*;dbname=*database*',
>     'username'=>'*username*',
>     'password'=>'*password*',
>     'prefix'=>'habari__'
> )
> );
>
> Obviously you'd need to replace the bold text with your relevant info
>
> Ali B / dmondarkhttp://www.awhitebox.com
>
> ---------- Forwarded message ----------
> From: Sean Coates <[email protected]>
> Date: Sat, Mar 14, 2009 at 7:46 PM
> Subject: [habari-dev] Config class and BC Break
> To: [email protected]
>
> Hi all,
>
> I made some changes to how configuration (currently only database
> configuration) is stored for Habari.
> There's now a configuration registry class ("Config") instead of the
> nasty globals.
>
> Changeset here:http://trac.habariproject.org/habari/changeset/3309
>
> WARNING: This will cause a BC break to all of you trunk users out
> there (and will need to be changed between 0.5 and 0.6 when that's
> released).
>
> Old config.php had a $db_connection = array( ... );
> This should now be: Config::set( 'db_connection', array( ... ) );
>
> Sorry if that inconveniences anyone, but the global config stuff broke
> down in phpunit (and was otherwise error-prone, due to PHP's scoping
> rules).
>
> S
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to