Getting started with yii
Remarks#
Yii is a high-performance PHP framework best for developing Web 2.0 applications.
Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.
Three steps to build your application rapidly:
- You create the database;
- Yii generates the base PHP code;
- You customize the code to fit your exact needs.
Versions#
Release | Release date |
---|---|
1.0 | 2008-12-03 |
1.0.1 | 2009-01-04 |
1.0.2 | 2009-02-01 |
1.0.3 | 2009-03-01 |
1.0.4 | 2009-04-05 |
1.0.5 | 2009-05-10 |
1.0.6 | 2009-06-07 |
1.0.7 | 2009-07-05 |
1.0.8 | 2009-08-09 |
1.0.9 | 2009-09-06 |
1.0.10 | 2009-10-18 |
1.0.11 | 2009-12-13 |
1.0.12 | 2010-03-14 |
1.1.0 | 2010-01-10 |
1.1.1 | 2010-03-14 |
1.1.2 | 2010-05-02 |
1.1.3 | 2010-07-04 |
1.1.4 | 2010-09-05 |
1.1.5 | 2010-11-14 |
1.1.6 | 2011-01-16 |
1.1.7 | 2011-03-27 |
1.1.8 | 2011-06-26 |
1.1.9 | 2012-01-01 |
1.1.10 | 2012-02-12 |
1.1.11 | 2012-07-29 |
1.1.12 | 2012-08-19 |
1.1.13 | 2012-12-30 |
1.1.14 | 2013-08-11 |
1.1.15 | 2014-06-29 |
1.1.16 | 2014-12-21 |
1.1.17 | 2016-01-13 |
2.0.0 | 2014-10-12 |
2.0.1 | 2014-12-07 |
2.0.2 | 2015-01-11 |
2.0.3 | 2015-03-01 |
2.0.4 | 2015-05-10 |
2.0.5 | 2015-07-11 |
2.0.6 | 2015-08-05 |
2.0.7 | 2016-02-14 |
2.0.8 | 2016-04-28 |
2.0.9 | 2016-07-11 |
Source: Yii #History - Wikipedia (note: release 2.0.9 is missing from the Wikipedia article on 2016-07-29)
Installation or Setup
Setup for Yii 1.1
Step 1 - downloading Yii
Download the Yii framework bundle from the Yii website
Inside the downloaded bundle there are 3 folders, namely:
demos
framework
requirements
demos
, as the name suggests contains a number of demo Yii applications.
framework
contains the Yii framework. This is the main folder we will use for the setup
requirements
contains code to check if a server meets the requirements for running Yii
Copy the framework
folder to your local server. Itβs recommended to keep the framework
folder in the root directory of your application. In this setup guide we will be using localhost/yii-setup/
as our root project directory
Step 2 - the command line
Open the command line and enter the framework folder. For this example we would go to
c:\wamp\www\yii-setup\framework\
We will now use yiic
to generate a skeleton application. We do this by entering the command:
yiic webapp path\to\root\directory
Where path/to/root/directory will be the path to your root directory, so in our example the command would be:
yiic webapp c:\wamp\www\yii-setup\
If you receive an error at this point, your command line is not configured to execute php. You will need to enable php execution from the command line to continue. Otherwise,
you will be prompted if you would like to create a new application at the entered path. Press y
and hit the return key
Your Yii skeleton application will be created under the specified path