Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Porting the functionality 'Installer' to the Yii PHP framework - GCI …
…Task #7134282 by gautamgupta Time to say goodbye to CodeIngitor dependency for using the Yii version. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@11586 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
1 parent
0054401
commit f153075
Showing
23 changed files
with
2,292 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,60 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
|
||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
| ------------------------------------------------------------------- | ||
| DATABASE CONNECTIVITY SETTINGS | ||
| ------------------------------------------------------------------- | ||
| This file will contain the settings needed to access your database. | ||
| | ||
| For complete instructions please consult the 'Database Connection' | ||
| page of the User Guide. | ||
| | ||
| ------------------------------------------------------------------- | ||
| EXPLANATION OF VARIABLES | ||
| ------------------------------------------------------------------- | ||
| | ||
| 'connectionString' Hostname, database, port and database type for | ||
| the connection. Driver example: mysql. Currently supported: | ||
| mysql, pgsql, mssql, sqlite, oci | ||
| 'username' The username used to connect to the database | ||
| 'password' The password used to connect to the database | ||
| 'tablePrefix' You can add an optional prefix, which will be added | ||
| to the table name when using the Active Record class | ||
| | ||
*/ | ||
return array( | ||
'basePath' => dirname(dirname(__FILE__)), | ||
'name' => 'LimeSurvey', | ||
'defaultController' => 'survey', | ||
|
||
'import' => array( | ||
'application.core.*', | ||
'application.models.*', | ||
'application.controllers.*', | ||
), | ||
|
||
'defaultController' => 'survey', | ||
|
||
'components' => array( | ||
/* | ||
'db' => array( | ||
'connectionString' => 'mysql:host=localhost;dbname=limesurvey_yii', | ||
'connectionString' => 'mysql:host=localhost;port=3306;dbname=limesurvey', | ||
'emulatePrepare' => true, | ||
'username' => 'root', | ||
'password' => 'root', | ||
'charset' => 'utf8', | ||
'tablePrefix' => 'lime_', | ||
), | ||
/** | ||
Uncomment after implementing the error controller | ||
'errorHandler' => array( | ||
'errorAction' => 'error', | ||
'session' => array ( | ||
'class' => 'system.web.CDbHttpSession', | ||
'connectionID' => 'db', | ||
'sessionTableName' => '{{sessions}}', | ||
), | ||
*/ | ||
*/ | ||
'urlManager' => array( | ||
'urlFormat' => 'path', | ||
'rules' => require('routes.php'), //!!! Completely move it here | ||
), | ||
'session' => array ( | ||
'class' => 'system.web.CDbHttpSession', | ||
'connectionID' => 'db', | ||
'sessionTableName' => 'YiiSession', | ||
'rules' => require('routes.php'), | ||
), | ||
|
||
), | ||
); | ||
?> | ||
|
||
|
||
/* End of file config.php */ | ||
/* Location: ./application/config/config.php */ | ||
|
||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
| ------------------------------------------------------------------- | ||
| DATABASE CONNECTIVITY SETTINGS | ||
| ------------------------------------------------------------------- | ||
| This file will contain the settings needed to access your database. | ||
| | ||
| For complete instructions please consult the 'Database Connection' | ||
| page of the User Guide. | ||
| | ||
| ------------------------------------------------------------------- | ||
| EXPLANATION OF VARIABLES | ||
| ------------------------------------------------------------------- | ||
| | ||
| ['hostname'] The hostname of your database server. | ||
| ['username'] The username used to connect to the database | ||
| ['password'] The password used to connect to the database | ||
| ['database'] The name of the database you want to connect to | ||
| ['dbdriver'] The database type. ie: mysql. Currently supported: | ||
| mysql, mysqli, postgre, odbc, mssql, sqlite, oci8 | ||
| ['dbprefix'] You can add an optional prefix, which will be added | ||
| to the table name when using the Active Record class | ||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection | ||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed. | ||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching | ||
| ['cachedir'] The path to the folder where cache files should be stored | ||
| ['char_set'] The character set used in communicating with the database | ||
| ['dbcollat'] The character collation used in communicating with the database | ||
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix | ||
| ['autoinit'] Whether or not to automatically initialize the database. | ||
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections | ||
| - good for ensuring strict SQL while developing | ||
| | ||
| The $active_group variable lets you choose which connection group to | ||
| make active. By default there is only one group (the 'default' group). | ||
| | ||
| The $active_record variables lets you determine whether or not to load | ||
| the active record class | ||
*/ | ||
|
||
/* Location: ./application/config/config.php */ |
Oops, something went wrong.