-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
103 changed files
with
2,930 additions
and
254 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore all test and documentation for archive | ||
/.github export-ignore | ||
/.gitattributes export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.travis.yml export-ignore | ||
/docs export-ignore |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Contributing to Yii2 | ||
==================== | ||
|
||
- [Report an issue](docs/internals/report-an-issue.md) | ||
- [Translate documentation or messages](docs/internals/translation-workflow.md) | ||
- [Give us feedback or start a design discussion](http://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/) | ||
- [Contribute to the core code or fix bugs](docs/internals/git-workflow.md) |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### What steps will reproduce the problem? | ||
|
||
### What is expected? | ||
|
||
### What do you get instead? | ||
|
||
### Additional info | ||
|
||
| Question | Answer | ||
| ---------------- | ---------------- | ||
| Yii version | | ||
| PHP version | | ||
| Operating system | |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
| Question | Answer | ||
| ------------- | ------------- | ||
| Is bugfix? | yes/no | ||
| New feature? | yes/no | ||
| Breaks BC? | yes/no | ||
| Tests pass? | yes/no | ||
| Fixed issues | comma-separated list of tickets # fixed by the PR, if any |
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,7 +1,3 @@ | ||
# index files | ||
/index.php | ||
/index-test.php | ||
|
||
# yii console command | ||
/yii | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
language: php | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
# - hhvm | ||
|
||
# faster builds on new travis setup not using sudo | ||
sudo: false | ||
|
||
# cache vendor dirs | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
install: | ||
- travis_retry composer self-update && composer --version | ||
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.0" | ||
- export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- travis_retry composer install --dev --prefer-dist --no-interaction | ||
# codeception | ||
- travis_retry composer global require "codeception/codeception=2.0.*" "codeception/specify=*" "codeception/verify=*" | ||
# setup application: | ||
- | | ||
./init --env=Development | ||
sed -i s/root/travis/ common/config/main-local.php | ||
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php | ||
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php | ||
cd tests/codeception/backend && codecept build | ||
cd ../common && codecept build | ||
cd ../console && codecept build | ||
cd ../frontend && codecept build | ||
cd ../../../ | ||
before_script: | ||
- mysql -e 'CREATE DATABASE yii2_advanced_tests;'; | ||
- cd tests/codeception/bin && php yii migrate --interactive=0 && cd ../../.. | ||
|
||
script: | ||
- | | ||
php -S localhost:8080 > /dev/null 2>&1 & | ||
cd tests | ||
codecept run |
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
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
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
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,16 +1,11 @@ | ||
<?php | ||
/** | ||
* @link http://www.yiiframework.com/ | ||
* @copyright Copyright (c) 2008 Yii Software LLC | ||
* @license http://www.yiiframework.com/license/ | ||
*/ | ||
|
||
namespace backend\assets_b; | ||
|
||
use yii\web\AssetBundle; | ||
|
||
/** | ||
* @author Qiang Xue <[email protected]> | ||
* Main backend application asset bundle. | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 2.0 | ||
*/ | ||
|
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
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
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
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
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
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,5 +1,5 @@ | ||
<?php | ||
Yii::setAlias('common', dirname(__DIR__)); | ||
Yii::setAlias('frontend', dirname(dirname(__DIR__)) . '/frontend'); | ||
Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend'); | ||
Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console'); | ||
Yii::setAlias('@common', dirname(__DIR__)); | ||
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend'); | ||
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend'); | ||
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console'); |
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 |
---|---|---|
|
@@ -185,4 +185,4 @@ public function removePasswordResetToken() | |
{ | ||
$this->password_reset_token = null; | ||
} | ||
} | ||
} |
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,25 +1,21 @@ | ||
{ | ||
"name": "kartik-v/yii2-app-practical-a", | ||
"description": "Yii 2 Practical-A Application Template (based on advanced)", | ||
"keywords": ["yii2", "framework", "practical", "practical-a", "application template"], | ||
"homepage": "http://demos.krajee.com/app-practical", | ||
"name": "yiisoft/yii2-app-advanced", | ||
"description": "Yii 2 Advanced Project Template", | ||
"keywords": ["yii2", "framework", "advanced", "project template"], | ||
"homepage": "http://www.yiiframework.com/", | ||
"type": "project", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Kartik Visweswaran", | ||
"email": "[email protected]", | ||
"homepage": "http://www.krajee.com/" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/kartik-v/yii2-app-practical-a/issues?state=open", | ||
"source": "https://github.com/kartik-v/yii2-app-practical-a/" | ||
"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" | ||
}, | ||
"minimum-stability": "dev", | ||
"require": { | ||
"php": ">=5.4.0", | ||
"yiisoft/yii2": ">=2.0.5", | ||
"yiisoft/yii2": ">=2.0.6", | ||
"yiisoft/yii2-bootstrap": "*", | ||
"yiisoft/yii2-swiftmailer": "*" | ||
}, | ||
|
@@ -38,4 +34,4 @@ | |
"bower-asset-library": "vendor/bower" | ||
} | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Plantilla de Proyecto Avanzado de Yii 2 | ||
======================================= | ||
|
||
La Plantilla de Proyecto Avanzado de [Yii 2](http://www.yiiframework.com/) es el mejor esqueleto para el desarrollo de aplicaciones web complejas con múltiples capas | ||
|
||
La plantilla incluye tres capas: front end, back end, y consola, cada una de ellas, es una aplicación separada de Yii. | ||
|
||
La plantilla esta diseñada para trabajar en un entorno de desarrollo en equipo. Soporta el despliegue de la aplicación en diferentes entornos. | ||
|
||
También va un poco más allá con respecto a características y proporciona una base de datos esencial lista para usar, con registro de usuarios y restablecimiento de contraseñas. | ||
|
||
Primeros Pasos | ||
-------------- | ||
|
||
* [Instalación](start-installation.md) | ||
* [Diferencias respecto a la plantilla básica](start-comparison.md) | ||
* [Configurando Composer](start-composer.md) | ||
|
||
Estructura | ||
---------- | ||
|
||
* [Directorios](structure-directories.md) | ||
* [Alias Predefinidos](structure-path-aliases.md) | ||
* [Aplicaciones](structure-applications.md) | ||
* [Configuración y Entorno](structure-environments.md) | ||
|
||
Temas adicionales | ||
----------------- | ||
|
||
* [Creando enlaces del backend al frontend](topic-link-backend-frontend.md) | ||
* [Añadiendo más aplicaciones](topic-adding-more-apps.md) |
Oops, something went wrong.