Browse Source

Reorganized the bootstrap app to prepare it as a separate composer package.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
7dc624d1da
  1. 0
      apps/bootstrap/commands/HelloController.php
  2. 44
      apps/bootstrap/composer.json
  3. 0
      apps/bootstrap/config/assets.php
  4. 0
      apps/bootstrap/config/console.php
  5. 0
      apps/bootstrap/config/main.php
  6. 0
      apps/bootstrap/config/params.php
  7. 0
      apps/bootstrap/controllers/SiteController.php
  8. 14
      apps/bootstrap/index.php
  9. 0
      apps/bootstrap/models/ContactForm.php
  10. 0
      apps/bootstrap/models/LoginForm.php
  11. 0
      apps/bootstrap/models/User.php
  12. 1
      apps/bootstrap/protected/.htaccess
  13. 40
      apps/bootstrap/readme.md
  14. 4
      apps/bootstrap/requirements.php
  15. 0
      apps/bootstrap/runtime/.gitignore
  16. 0
      apps/bootstrap/vendor/.gitignore
  17. 0
      apps/bootstrap/views/layouts/main.php
  18. 0
      apps/bootstrap/views/site/about.php
  19. 0
      apps/bootstrap/views/site/contact.php
  20. 0
      apps/bootstrap/views/site/index.php
  21. 0
      apps/bootstrap/views/site/login.php
  22. 1
      apps/bootstrap/www/assets/.gitignore
  23. 0
      apps/bootstrap/www/css/bootstrap-responsive.css
  24. 0
      apps/bootstrap/www/css/bootstrap-responsive.min.css
  25. 0
      apps/bootstrap/www/css/bootstrap.css
  26. 0
      apps/bootstrap/www/css/bootstrap.min.css
  27. 0
      apps/bootstrap/www/css/site.css
  28. 0
      apps/bootstrap/www/img/glyphicons-halflings-white.png
  29. 0
      apps/bootstrap/www/img/glyphicons-halflings.png
  30. 12
      apps/bootstrap/www/index.php
  31. 0
      apps/bootstrap/www/js/bootstrap.js
  32. 0
      apps/bootstrap/www/js/bootstrap.min.js
  33. 4
      apps/bootstrap/yii
  34. 0
      apps/bootstrap/yii.bat

0
apps/bootstrap/protected/commands/HelloController.php → apps/bootstrap/commands/HelloController.php

44
apps/bootstrap/composer.json

@ -0,0 +1,44 @@
{
"name": "yiisoft/yii2-bootstrap",
"description": "Yii 2 Bootstrap Application",
"keywords": ["yii", "framework", "bootstrap"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"config": {
"vendor-dir": "vendor"
},
"bin": [
"yii"
],
"minimum-stability": "dev",
"repositories": [
{
"type": "package",
"package": {
"name": "bestiejs/punycode.js",
"version": "1.2.1",
"dist": {
"url": "https://github.com/bestiejs/punycode.js/archive/1.2.1.zip",
"type": "zip"
},
"source": {
"url": "https://github.com/bestiejs/punycode.js.git",
"type": "git",
"reference": "tags/1.2.1"
}
}
}
],
"require": {
"php": ">=5.3.0",
"yiisoft/yii2": "dev-master"
}
}

0
apps/bootstrap/protected/config/assets.php → apps/bootstrap/config/assets.php

0
apps/bootstrap/protected/config/console.php → apps/bootstrap/config/console.php

0
apps/bootstrap/protected/config/main.php → apps/bootstrap/config/main.php

0
apps/bootstrap/protected/config/params.php → apps/bootstrap/config/params.php

0
apps/bootstrap/protected/controllers/SiteController.php → apps/bootstrap/controllers/SiteController.php

14
apps/bootstrap/index.php

@ -1,14 +0,0 @@
<?php
// comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
$frameworkPath = __DIR__ . '/../../yii';
require($frameworkPath . '/Yii.php');
// Register Composer autoloader
@include($frameworkPath . '/vendor/autoload.php');
$config = require(__DIR__ . '/protected/config/main.php');
$application = new yii\web\Application($config);
$application->run();

0
apps/bootstrap/protected/models/ContactForm.php → apps/bootstrap/models/ContactForm.php

0
apps/bootstrap/protected/models/LoginForm.php → apps/bootstrap/models/LoginForm.php

0
apps/bootstrap/protected/models/User.php → apps/bootstrap/models/User.php

1
apps/bootstrap/protected/.htaccess

@ -1 +0,0 @@
deny from all

40
apps/bootstrap/readme.md

@ -0,0 +1,40 @@
Yii 2 Bootstrap Application
===========================
** NOTE ** Yii 2 and the relevant applications and extensions are still under heavy
development. We may make significant changes without prior notices. Please do not
use them for production. Please consider using [Yii v1.1](https://github.com/yiisoft/yii)
which is production ready.
Thank you for choosing Yii 2 - the new generation of high-performance PHP framework.
The Yii 2 Bootstrap Application is a Web application template that you can easily customize
to fit for your needs. It is particularly suitable for small Websites which mainly contain
a few informational pages.
DIRECTORY STRUCTURE
-------------------
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
models/ contains model classes
runtime/ contains files generated during runtime
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
www/ contains the entry script and Web resources
REQUIREMENTS
------------
The minimum requirement by Yii is that your Web server supports PHP 5.3.?.
INSTALLATION
------------

4
apps/bootstrap/protected/requirements.php → apps/bootstrap/requirements.php

@ -11,7 +11,7 @@
*/
// you may need to adjust this path to the correct Yii framework path
$frameworkPath = dirname(__FILE__) . '/../../../yii';
$frameworkPath = dirname(__FILE__) . '/../../yii';
require_once($frameworkPath . '/requirements/YiiRequirementChecker.php');
$requirementsChecker = new YiiRequirementChecker();
@ -93,4 +93,4 @@ $requirements = array(
'memo' => 'PHP mail SMTP server required',
),
);
$requirementsChecker->checkYii()->check($requirements)->render();
$requirementsChecker->checkYii()->check($requirements)->render();

0
apps/bootstrap/assets/.gitignore → apps/bootstrap/runtime/.gitignore vendored

0
apps/bootstrap/protected/runtime/.gitignore → apps/bootstrap/vendor/.gitignore vendored

0
apps/bootstrap/protected/views/layouts/main.php → apps/bootstrap/views/layouts/main.php

0
apps/bootstrap/protected/views/site/about.php → apps/bootstrap/views/site/about.php

0
apps/bootstrap/protected/views/site/contact.php → apps/bootstrap/views/site/contact.php

0
apps/bootstrap/protected/views/site/index.php → apps/bootstrap/views/site/index.php

0
apps/bootstrap/protected/views/site/login.php → apps/bootstrap/views/site/login.php

1
apps/bootstrap/www/assets/.gitignore vendored

@ -0,0 +1 @@
*

0
apps/bootstrap/css/bootstrap-responsive.css → apps/bootstrap/www/css/bootstrap-responsive.css vendored

0
apps/bootstrap/css/bootstrap-responsive.min.css → apps/bootstrap/www/css/bootstrap-responsive.min.css vendored

0
apps/bootstrap/css/bootstrap.css → apps/bootstrap/www/css/bootstrap.css vendored

0
apps/bootstrap/css/bootstrap.min.css → apps/bootstrap/www/css/bootstrap.min.css vendored

0
apps/bootstrap/css/site.css → apps/bootstrap/www/css/site.css vendored

0
apps/bootstrap/img/glyphicons-halflings-white.png → apps/bootstrap/www/img/glyphicons-halflings-white.png

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

0
apps/bootstrap/img/glyphicons-halflings.png → apps/bootstrap/www/img/glyphicons-halflings.png

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

12
apps/bootstrap/www/index.php

@ -0,0 +1,12 @@
<?php
// comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/yii.php');
require(__DIR__ . '/../vendor/autoload.php');
$config = require(__DIR__ . '/../config/main.php');
$application = new yii\web\Application($config);
$application->run();

0
apps/bootstrap/js/bootstrap.js → apps/bootstrap/www/js/bootstrap.js vendored

0
apps/bootstrap/js/bootstrap.min.js → apps/bootstrap/www/js/bootstrap.min.js vendored

4
apps/bootstrap/protected/yii → apps/bootstrap/yii

@ -13,11 +13,11 @@ defined('YII_DEBUG') or define('YII_DEBUG', true);
// fcgi doesn't have STDIN defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
$frameworkPath = __DIR__ . '/../../../yii';
$frameworkPath = __DIR__ . '/../../yii';
require($frameworkPath . '/Yii.php');
$config = require(__DIR__ . '/config/console.php');
$application = new yii\console\Application($config);
$application->run();
$application->run();

0
apps/bootstrap/protected/yii.bat → apps/bootstrap/yii.bat

Loading…
Cancel
Save