Why yii?
Yii (Yes It Is) is a next generation PHP framework , a high-performance PHP framework best for developing Web 2.0 applications.
Yii is pronounced as Yee or [ji:], and is an acroynym for "Yes It Is!".
This is often the accurate, and most concise response to inquires from those new to Yii.
Is it fast? ... Is it secure? ... Is it professional? ... Is it right for my next project? ... Yes, it is!
The main features that makes Yii on top is its features , faster than Codeigniter and Zend framework. . Yii also comes with a range of features for common tasks like CRUD (creating, reading, updating and deleting).
How to instal Yii | Simple Yii configuration. (in linux)
Step1:
Download a copy of the Yii release file from http://www.yiiframework.com and unpack it to the web acces directory like /www/ (in xammp htdocs folder).and rename the unpacked folder as "yii" .
Step2:
Step3:
How to Create Yii application , Creating Yii Application
Go to “www” directory in terminal then type following cammand.
sudo php yii/framework/yiic.php webapp /var/www/yii/appName
following message appears
“sudo php yii/framework/yiic.php webapp /var/www/yii/appName
Create a Web application under '/var/www/yii/appName'? (yes|no) [no]:”
following message appears
“Your application has been created successfully under /var/www/yii/appName. ”
if not working then open terminal then change path to web accessable directory.
set the folder acces to full level using
sudo chmod -R 777 appName/
Step4:
Go to
Step5:
How to configure Database in Yii .
1.create data base and table.
Go to the folder
/var/www/yii/appName/protected/config/main.php
Uncomment db componenent
Give the username , password, and db name
// uncomment the following to use a MySQL database
/*
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => '”', // enter pass word
'charset' => 'utf8',
),
*/
and
'modules'=>array(
// uncomment the following to enable the Gii tool
/*
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'Enter Your Password Here', // enter pass for admin
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
),
*/
),
go to web browser and type
login using password.
then appeare a window like this
thats all about config Enjoy!!!!!!!!!!.