Hi all… thanks in advance for the help…
I've installed the latest version of Yii and created my first webapp per the tutorial.
I added the 'db' section to my main.php as follows:
'db' => array(
'class' => 'CDbConnection',
'emulatePrepare' => true,
'autoConnect' => true,
'persistent' => true,
'connectionString' => 'mysql:host=localhost;dbname=xxx;',
'username' => 'xxuser',
'password' => 'xxuser',
However, when I run my site now, I'm getting an exception:
Property "CWebApplication.db" is read only.
Nobody else seems to be getting this?
What did I do wrong?
If I remove the 'db' section from main.php, the exception goes away.
Help is appreciated.