<?php defined('YII_DEBUG') or define('YII_DEBUG', true); defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php'; require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php'; $config = ConfigHelper::merge(array(__DIR__ . '/config/main.php', __DIR__ . '/config/console.php', __DIR__ . '/config/main-environment.php', __DIR__ . '/config/console-local.php')); $app = Yii::createConsoleApplication($config); $app->commandRunner->addCommands(YII_PATH . '/cli/commands'); $app->run();
<?php ini_set('display_errors', 1); $root = dirname(__DIR__); $yii = $root . '/vendor/yiisoft/yii/framework/yiilite.php'; $global = $root . '/app/helpers/global.php'; $builder = $root . '/vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php'; require_once $yii; require_once $global; require_once $builder; $config = ConfigHelper::merge(array($root . '/app/config/main.php', $root . '/app/config/web.php', $root . '/app/config/local.php')); Yii::createWebApplication($config)->run();
<?php defined('YII_DEBUG') or define('YII_DEBUG', true); require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php'; require __DIR__ . '/../app/components/WebApplication.php'; require __DIR__ . '/../app/helpers/global.php'; require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php'; $config = ConfigHelper::merge(array(__DIR__ . '/../app/config/main.php', __DIR__ . '/../app/config/web.php', __DIR__ . '/../app/config/main-environment.php', __DIR__ . '/../app/config/main-local.php')); $app = Yii::createApplication('WebApplication', $config); $app->run();
<?php /** * This is the bootstrap file for test application. * This file should be removed when the application is deployed for production. */ defined('YII_DEBUG') or define('YII_DEBUG', true); require __DIR__ . '/../vendor/yiisoft/yii/framework/yii.php'; require __DIR__ . '/../app/components/WebApplication.php'; require __DIR__ . '/../app/helpers/global.php'; require __DIR__ . '/../vendor/crisu83/yii-consoletools/helpers/ConfigHelper.php'; $config = ConfigHelper::merge(array(__DIR__ . '/../app/config/main.php', __DIR__ . '/../app/config/web.php', __DIR__ . '/../app/config/test.php')); $app = Yii::createApplication('WebApplication', $config); $app->run();