YiiBackboneBoilerplate icon indicating copy to clipboard operation
YiiBackboneBoilerplate copied to clipboard

Trying to figure out basic table setup

Open mandymozart opened this issue 12 years ago • 1 comments

Hi, I am really a big fan of the framework you guys provide.

I am trying to make use of your User login Model,

was not yet succesful to connect the Database to the framekwork.

Defined it all in common/config/environments/params-private.php

I ran the basic migration,

and params-env.php is a duplicate of that

also params-local.php is setting env = private

In the backend I tried the login form, but I get

CDbConnection.connectionString cannot be empty.

D:\www\dev.containa.com\public\apps\backend\models\LoginForm.php(112)

Can you give me a pinch in the right direction please? I feel like wasting a lot of time finding my error.

best, tilman

mandymozart avatar Sep 24 '12 01:09 mandymozart

Make sure that after you have set the parameters at your environments or params-local.php file, you have to make sure you uncomment the 'db' component at your frontend and/or backend main.php configuration file.

If you set the environment file (ie params-private.php) make sure you run the ./runpostdeploy command including the environment type (ie ./runpostdeploy private to get the parameters from environments/*-private.php files)

tonydspaniard avatar Sep 24 '12 17:09 tonydspaniard