Search

Dec 3, 2015

Setup Yii with WAMPP

SETUP YII with WAMPP

1/ copy file from http://www.yiiframework.com/download to c:\wamp\www folder
rename yii-1.1.13.... folder to yii
(c:\wamp\www\yii and the framework itself will be into c:\wamp\www\yii\framework)

2/ on c:\wamp\www creates a file with the extension 'bat' (for example myrun.bat),
then open it and put below code:

set PATH=%PATH%;C:\wamp\bin\php\php5.4.3
cmd

3/ Run myrun.bat file and type (or you can cd to ..wamp/www/ folder and type)
php yii/framework/yiic.php webapp myfirst


4/ Config databases
Create database MySQL and fix file
protected/config/database.php

5/ CRUD Create-Read-Update-Delete
Edit file protected/config/main.php
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'1',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
)

Go to http://localhost/myfirst/index.php?r=gii

No comments:

Post a Comment