Initial Commit
This commit is contained in:
46
app/config/common.php
Normal file
46
app/config/common.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* common.php configuration file
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
return array(
|
||||
'basePath' => realPath(__DIR__ . '/..'),
|
||||
'preload' => array('log'),
|
||||
'aliases' => array(
|
||||
'vendor' => 'application.vendor'
|
||||
),
|
||||
'import' => array(
|
||||
'application.controllers.*',
|
||||
'application.extensions.components.*',
|
||||
'application.extensions.behaviors.*',
|
||||
'application.helpers.*',
|
||||
'application.models.*',
|
||||
'vendor.2amigos.yiistrap.helpers.*',
|
||||
'vendor.2amigos.yiiwheels.helpers.*',
|
||||
),
|
||||
'components' => array(
|
||||
'errorHandler' => array(
|
||||
'errorAction' => 'site/error',
|
||||
),
|
||||
'log' => array(
|
||||
'class' => 'CLogRouter',
|
||||
'routes' => array(
|
||||
array(
|
||||
'class' => 'CFileLogRoute',
|
||||
'levels' => 'error, warning',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'params' => array(
|
||||
// php configuration
|
||||
'php.defaultCharset' => 'utf-8',
|
||||
'php.timezone' => 'UTC',
|
||||
)
|
||||
);
|
||||
20
app/config/console.php
Normal file
20
app/config/console.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* console.php configuration file
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
defined('APP_CONFIG_NAME') or define('APP_CONFIG_NAME', 'console');
|
||||
return array(
|
||||
'commandMap' => array(
|
||||
'migrate' => array(
|
||||
'class' => 'system.cli.commands.MigrateCommand',
|
||||
'migrationPath' => 'application.cli.migrations'
|
||||
)
|
||||
)
|
||||
);
|
||||
33
app/config/env/dev.php
vendored
Normal file
33
app/config/env/dev.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
return array(
|
||||
'modules' => array(
|
||||
'gii' => array(
|
||||
'class' => 'system.gii.GiiModule',
|
||||
'password' => 'yii',
|
||||
'ipFilters' => array('127.0.0.1','::1'),
|
||||
),
|
||||
),
|
||||
'components' => array(
|
||||
'db' => array(
|
||||
'connectionString' => 'mysql:host=localhost;dbname=db451718',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'enableProfiling' => true,
|
||||
'enableParamLogging' => true,
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
),
|
||||
'params' => array(
|
||||
'yii.handleErrors' => true,
|
||||
'yii.debug' => true,
|
||||
'yii.traceLevel' => 3,
|
||||
)
|
||||
);
|
||||
26
app/config/env/prod.php
vendored
Normal file
26
app/config/env/prod.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
return array(
|
||||
'components' => array(
|
||||
'db' => array(
|
||||
'connectionString' => 'mysql:host=rdbms.strato.de;dbname=DB451718',
|
||||
'username' => 'U451718',
|
||||
'password' => 'Datenbank',
|
||||
'enableProfiling' => YII_DEBUG,
|
||||
'enableParamLogging' => YII_DEBUG,
|
||||
'charset' => 'utf8',
|
||||
),
|
||||
),
|
||||
'params' => array(
|
||||
'yii.debug' => false,
|
||||
'yii.traceLevel' => 0,
|
||||
'yii.handleErrors' => APP_CONFIG_NAME !== 'test',
|
||||
)
|
||||
);
|
||||
7
app/config/env/stage.php
vendored
Normal file
7
app/config/env/stage.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* stage.php
|
||||
*/
|
||||
|
||||
return array(
|
||||
);
|
||||
70
app/config/main.php
Normal file
70
app/config/main.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* main.php configuration file
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
defined('APP_CONFIG_NAME') or define('APP_CONFIG_NAME', 'main');
|
||||
|
||||
use Yiinitializr\Helpers\ArrayX;
|
||||
|
||||
// web application configuration
|
||||
return ArrayX::merge(array(
|
||||
'name' => 'Mikescher_de',
|
||||
|
||||
// path aliases
|
||||
'aliases' => array(
|
||||
'bootstrap' => dirname(__FILE__) . '/../lib/vendor/2amigos/yiistrap',
|
||||
'yiiwheels' => dirname(__FILE__) . '/../lib/vendor/2amigos/yiiwheels',
|
||||
),
|
||||
|
||||
// application behaviors
|
||||
'behaviors' => array(),
|
||||
|
||||
// controllers mappings
|
||||
'controllerMap' => array(),
|
||||
|
||||
// application modules
|
||||
'modules' => array(),
|
||||
|
||||
// application components
|
||||
'components' => array(
|
||||
|
||||
'bootstrap' => array(
|
||||
'class' => 'bootstrap.components.TbApi',
|
||||
),
|
||||
|
||||
'clientScript' => array(
|
||||
'scriptMap' => array(
|
||||
'bootstrap.min.css' => false,
|
||||
'bootstrap.min.js' => false,
|
||||
'bootstrap-yii.css' => false
|
||||
)
|
||||
),
|
||||
'urlManager' => array(
|
||||
// uncomment the following if you have enabled Apache's Rewrite module.
|
||||
'urlFormat' => 'path',
|
||||
'showScriptName' => false,
|
||||
|
||||
'rules' => array(
|
||||
// default rules
|
||||
'<controller:\w+>/<id:\d+>' => '<controller>/view',
|
||||
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
|
||||
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
|
||||
),
|
||||
),
|
||||
'user' => array(
|
||||
'allowAutoLogin' => true,
|
||||
),
|
||||
'errorHandler' => array(
|
||||
'errorAction' => 'site/error',
|
||||
)
|
||||
),
|
||||
// application parameters
|
||||
'params' => array(),
|
||||
), require_once('common.php'));
|
||||
16
app/config/test.php
Normal file
16
app/config/test.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* test.php configuration file
|
||||
*
|
||||
* @author Antonio Ramirez <amigo.cobos@gmail.com>
|
||||
* @link http://www.ramirezcobos.com/
|
||||
* @link http://www.2amigos.us/
|
||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||
*/
|
||||
return array(
|
||||
'params' => array(
|
||||
'yii.handleErrors' => false,
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user