2017 © Pedro Peláez
 

project yii-advanced-template

Bryan Tan Yii Advanced Template

image

bryglen/yii-advanced-template

Bryan Tan Yii Advanced Template

  • Friday, January 17, 2014
  • by bryglen
  • Repository
  • 2 Watchers
  • 15 Stars
  • 110 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Bryan Tan Yii Advanced Application Template

DIRECTORY STRUCTURE

/protected
    config
        api/            contains api configurations
        backend/        contains backend configurations
        common/         contains shared configurations
        console/        contains console configurations
        frontend/       contains frontend configurations
        test/           contains test driven development configurations
    controllers
        api/            contains api controller
        backend/        contains backend controller
        frontend/       contains frontend controller
    models
        _base           contains base models (generated by gii)
        _common         contains common classes used in backend, frontend and api
        api             contains api-specific classes
        backend         contains backend-specific classes
        frontend        contains frontend-specific classes

/environment.php         contains environment-based

REQUIREMENTS

The minimum requirement by Yii is that your Web server supports PHP 5.3.0., (*1)

In order for captcha to work you need either GD2 extension or ImageMagick PHP extension., (*2)

INSTALLATION

Install via Composer

If you do not have Composer, you may download it from http://getcomposer.org/ or run the following command on Linux/Unix/MacOS:, (*3)

curl -s http://getcomposer.org/installer | php

You can then install the application using the following command:, (*4)

php composer.phar create-project --stability=dev bryglen/yii-advanced-template yii-advanced

Install from repository

Download source code from repository, (*5)

GETTING STARTED

1. /assets - change permission to writable by webserver
2. /protected/runtime - change permission to writable by webserver
3. /uploads - change permission to writable by webserver
4. /environment.php - add your absolute path to $local_path
5. /protected/config/dbconnect.local.php - create a file and copy the format in dbconnect.sample.php (local development) and change the configuration

you should be able to access:, (*6)

  • the frontend using the URL http://localhost/bryantan/
  • the backend using the URL http://localhost/bryantan/backend/
  • the api using the URL http://localhost/bryantan/api/

make sure you enable the modrewrite rule, (*7)

Reference: http://www.yiiframework.com/doc/guide/1.1/en/topics.url#hiding-x-23x, (*8)

Inspired By: http://www.yiiframework.com/wiki/63/organize-directories-for-applications-with-front-end-and-back-end-using-webapplicationend-behavior, (*9)

Since: Oct 25, 2013, (*10)

Author: bryantan16@gmail.com, (*11)

Version: 1.0.0, (*12)

The Versions

17/01 2014

dev-master

9999999-dev http://github.com/bryglen

Bryan Tan Yii Advanced Template

  Sources   Download

The Requires

  • php >=5.3.0

 

yii web yii advanced template