Failed at adding gii
This commit is contained in:
parent
2f2ca4d5e4
commit
68c1e325f2
@ -28,6 +28,7 @@ return array(
|
|||||||
'errorHandler' => array(
|
'errorHandler' => array(
|
||||||
'errorAction' => 'site/error',
|
'errorAction' => 'site/error',
|
||||||
),
|
),
|
||||||
|
|
||||||
'log' => array(
|
'log' => array(
|
||||||
'class' => 'CLogRouter',
|
'class' => 'CLogRouter',
|
||||||
'routes' => array(
|
'routes' => array(
|
||||||
@ -46,7 +47,22 @@ return array(
|
|||||||
'enableParamLogging' => true,
|
'enableParamLogging' => true,
|
||||||
'charset' => 'utf8',
|
'charset' => 'utf8',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
'urlManager' => array(
|
||||||
|
// uncomment the following if you have enabled Apache's Rewrite module.
|
||||||
|
'urlFormat' => 'path',
|
||||||
|
//'caseSensitive' => true,
|
||||||
|
'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>',
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
|
||||||
'params' => array(
|
'params' => array(
|
||||||
// php configuration
|
// php configuration
|
||||||
'php.defaultCharset' => 'utf-8',
|
'php.defaultCharset' => 'utf-8',
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<?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'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
@ -46,21 +46,11 @@ return ArrayX::merge(array(
|
|||||||
'bootstrap-yii.css' => 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(
|
'user' => array(
|
||||||
'allowAutoLogin' => true,
|
'allowAutoLogin' => true,
|
||||||
),
|
),
|
||||||
|
|
||||||
'errorHandler' => array(
|
'errorHandler' => array(
|
||||||
'errorAction' => 'site/error',
|
'errorAction' => 'site/error',
|
||||||
)
|
)
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
<?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,
|
|
||||||
)
|
|
||||||
);
|
|
@ -26,7 +26,7 @@
|
|||||||
<meta name="description" content="">
|
<meta name="description" content="">
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/bootstrap.min.css">
|
<link rel="stylesheet" href="css/<?php echo (YII_DEBUG ? 'bootstrap.css' : 'bootstrap.min.css') ?>">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
padding-top: 60px;
|
padding-top: 60px;
|
||||||
@ -89,7 +89,7 @@
|
|||||||
<?php echo $content; ?>
|
<?php echo $content; ?>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
||||||
<script src="js/libs/bootstrap.min.js"></script>
|
<script src="<?php echo (YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js') ?>"></script>
|
||||||
<script src="js/plugins.js"></script>
|
<script src="js/plugins.js"></script>
|
||||||
<script src="js/main.js"></script>
|
<script src="js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<!-- Example row of columns -->
|
<!-- Example row of columns -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h2>Heading</h2>
|
<h2>Heading YD: <?php echo YII_DEBUG ?></h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
* @copyright 2013 2amigOS! Consultation Group LLC
|
* @copyright 2013 2amigOS! Consultation Group LLC
|
||||||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// CHANGE the following line when in production mode
|
||||||
|
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||||
|
|
||||||
require('./../app/lib/vendor/autoload.php');
|
require('./../app/lib/vendor/autoload.php');
|
||||||
|
|
||||||
Yiinitializr\Helpers\Initializer::create('./../app', 'main', array('common', 'env', 'local'))->run();
|
Yiinitializr\Helpers\Initializer::create('./../app', 'main', array('common', 'env', 'local'))->run();
|
Loading…
Reference in New Issue
Block a user