YII webapp customising from ground up

A)) config/main.php

1. name your webapp

‘name’=’my webapp’

2.  enable gii

// If removed, Gii defaults to localhost only. Edit carefully to taste.


3. create your database scheme

4.  beautify url


5. enable mysql or point to sqldatabase

‘connectionString’ => ‘mysql:host=localhost;dbname=mywebapp’,
’emulatePrepare’ => true,
‘username’ => ‘root’,
‘password’ => ‘password’,
‘charset’ => ‘utf8’,

6. set admin email

// this is used in contact page


7. show log messages in the webpage

/ uncomment the following to show log messages on web pages


7.  change default passwords

public function authenticate()
// username => password

BB) Download mbmenu plugi


1. change menus

<?php $this->widget(‘application.extensions.mbmenu.MbMenu’,array(
array(‘label’=>’Home’, ‘url’=>array(‘/site/index’)),
array(‘label’=>’Menu 1’, ‘url’=>array(‘/menu1l’),
array(‘label’=>’sub menu 1’, ‘url’=>array(‘/item11’)),
array(‘label’=>’sub menu 2’, ‘url’=>array(‘/item12)),

2. change footer

<div id=”footer”>
Copyright &copy; <?php echo date(‘Y’); ?> by my company – All Rights Reserved.<br/>
</div><!– footer –>

CC)  YII-booster plugin


Yii::setPathOfAlias(‘booster’, dirname(__FILE__) . DIRECTORY_SEPARATOR . ‘../extensions/yii-booster’);

// preloading ‘log’ component



‘booster’=> array(
‘class’ =>’booster.components.Booster’,



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s