Custom Yii template for my development purposes
PHP CSS Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
js
protected
themes/classic/views
.htaccess
LICENSE
README.md
index-test.php
index.php

README.md

yii-template

Custom Yii template for personal development.

Setup

  1. File: index.php

Set the Yii framework path with the location of where you installed the Yii framework.

require_once('<path-to-yii>/yii.php');

Set the Server IP Address for the dev server to load the dev config where applicable.

case '<dev-server-ip>' :
  1. File: protected/config/dev.php

Set your IP for the Rollbar IP Filters

'ipFilters'=>array('127.0.0.1', '<your-ip>')

Set up your Rollbar Access Token

'AccessToken'=>'<Rollbar-AccessToken>',

Set up database connection string

'db'=>array(
        'connectionString'   => 'mysql:host=localhost;dbname=',
		'emulatePrepare'     => true,
		'username'           => '',
		'password'           => '',
		'charset'            => 'utf8',
        'schemaCachingDuration' => 3600000, // One hour
        'enableProfiling'       => true,
        'enableParamLogging'    => true,
    ),
  1. File: protected/config/main.php

Set up your GiiModule IP Filters and password

'password'=>'<gii-password>',
'ipFilters'=>array('<your-ip>'),

Set up database connection string

'db'=>array(
        'connectionString'   => 'mysql:host=localhost;dbname=',
		'emulatePrepare'     => true,
		'username'           => '',
		'password'           => '',
		'charset'            => 'utf8',
        'schemaCachingDuration' => 3600000, // One hour
        'enableProfiling'       => true,
        'enableParamLogging'    => true,
    ),

Set up your params for email address:

'adminEmail'=>'<your-email>',

If using console(yiic) change the Yii Framework path location

$yiic=dirname(__FILE__).'<path-to-yii>/yii.php';