2017 © Pedro Peláez
 

project yii2-app-practical-a

Yii 2 Practical A Application Template

image

kartik-v/yii2-app-practical-a

Yii 2 Practical A Application Template

  • Thursday, October 5, 2017
  • by kartik-v
  • Repository
  • 4 Watchers
  • 32 Stars
  • 2,675 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 14 Forks
  • 4 Open issues
  • 13 Versions
  • 1 % Grown

The README.md

Krajee Logo
Yii 2 Practical-A Project Template
Donate

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)

Yii 2 Practical-A Project Template is a skeleton Yii 2 application based on the yii2-advanced template best for developing complex Web applications with multiple tiers. The template allows a practical method to directly access the frontend from the app root and a simplified way to access backend., (*2)

The template includes three tiers: front end, back end, and console, each of which is a separate Yii application., (*3)

The template is designed to work in a team development environment. It supports deploying the application in different environments., (*4)

Why yii2-practical-a?

After installing an app in the yii2-advanced application you normally would access the frontend and backend by:, (*5)

http://domain/app/frontend/web
http://domain/app/backend/web

However, in many practical scenarios (especially on shared and single domain hosts) one would want their users to directly access frontend and backend as:, (*6)

http://domain/app
http://domain/app/backend

The yii2-app-practical-a enables you to achieve just that by carefully moving and rearranging the bootstrap files and web components of frontend to work directly out of the app root and backend out of the backend. The frontend/web and backend/web folders are entirely eliminated and one can directly access the application frontend this way:, (*7)

http://domain/app

and backend this way, (*8)

http://domain/app/backend

All other aspects of the app configuration remain the same as the yii2-advanced app. The common, and console will remain as is. The frontend config, assets, models, controllers, views, widgets and components, will still reside within the frontend directory. The backend config, assets, models, controllers, views, widgets and components, will still reside within the backend directory. It is just the web access that is moved out to app root for frontend and to the backend root folder for backend., (*9)

SOME KEY ADDITIONS

  1. The template has some security preconfigured for users with Apache web servers. It has a default .htaccess security configuration setup.
  2. The template has prettyUrl enabled by default and the changes have been made to .htaccess as well as urlManager component config in the common config directory.
  3. The template has isolated cookie settings for backend and frontend so that you can seamlessly access frontend and backend from same client. The config files includes special identity and csrf cookie parameter settings for backend. Edit it according to your needs if necessary.

Detailed documentation can be referred at docs/guide/README.md., (*10)

DIRECTORY STRUCTURE

/
    /                    contains the frontend entry script, favicon, and robots.txt.
    assets/              contains frontend application runtime web assets such as JavaScript and CSS
common
    config/              contains shared configurations
    mail/                contains view files for e-mails
    models/              contains model classes used in both backend and frontend
    tests/               contains tests for common classes    
console
    config/              contains console configurations
    controllers/         contains console controllers (commands)
    migrations/          contains database migrations
    models/              contains console-specific model classes
    runtime/             contains files generated during runtime
backend
    /                    contains the backend entry script, favicon, and robots.txt.
    assets/              contains the backend application runtime web assets such as JavaScript and CSS
    assets_b/            contains web assets and scripts used by backend application
    config/              contains backend configurations
    controllers/         contains Web controller classes
    models/              contains backend-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for backend application    
    views/               contains view files for the Web application
    web/                 contains the entry script and Web resources
frontend
    assets/              contains web assets and scripts used by frontend application
    config/              contains frontend configurations
    controllers/         contains Web controller classes
    models/              contains frontend-specific model classes
    runtime/             contains files generated during runtime
    tests/               contains tests for frontend application
    views/               contains view files for the Web application
    widgets/             contains frontend widgets
vendor/                  contains dependent 3rd-party packages
environments/            contains environment-based overrides

The Versions

05/10 2017

dev-master

9999999-dev http://demos.krajee.com/app-practical-a

Yii 2 Practical A Application Template

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 advanced project template practical practical-a

08/04 2016

v1.5.1

1.5.1.0 http://www.yiiframework.com/

Yii 2 Advanced Project Template

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework yii2 advanced project template

19/12 2014

v1.5.0

1.5.0.0 http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical-a

04/11 2014

1.4.0.x-dev

1.4.0.9999999-dev http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical-a

01/11 2014

v1.4.0

1.4.0.0 http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical-a

14/10 2014

1.2.0.x-dev

1.2.0.9999999-dev http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical-a

14/10 2014

v1.2.0

1.2.0.0 http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical-a

29/06 2014

1.1.0.x-dev

1.1.0.9999999-dev http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on practical & advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical practical-a

29/06 2014

v1.1.0

1.1.0.0 http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on practical & advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical practical-a

13/05 2014

1.0.0.x-dev

1.0.0.9999999-dev http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on practical & advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical practical-a

13/05 2014

v1.0.0

1.0.0.0 http://demos.krajee.com/app-practical-a

Yii 2 Practical-A Application Template (based on practical & advanced)

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

framework application template yii2 practical practical-a