Friday, October 5, 2012

Introduction

Yii Framework is a High Performance Php framework which follows MVC pattern. This framework is combination of different features like :
  • MVC Pattern
  • Cache Management
  • Security
  • DAO/Active record 
  • Scaffolding
  • Testing/Debugging
  • High performance/Fast coding  
 Yii framework can easily be integrated with different databases like MySql, Postgresql, Oracle , DB2 etc.

Installation

Installation of Yii Framework is very easy.These are the requirements for YII framework setup :
  • LAMPP Package.
  • YII Framework Package.
  • Operating System. 
 LAMPP :

According to Wikkipedia this is is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages.
XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and PhpMyAdmin.

It is also called XAMPP. You can download it for Windows or  Linux. You can download XAMPP/LAMPP for windows or Linux from here :

XAMPP for Windows : Click Here
XAMPP for Linux : Click Here
XAMPP download List for MAC OS X, Solaris : Click Here

Note : Phpmyadmin is an interface for Mysql database where you can easily write query, create, alter, delete tables/databases. Here you can also see the performance of database.

Installation :

In Linux :

After downloading simply type in the following commands:

  • Go to a Linux shell.
  • Extract the downloaded archive file to /opt:
  • Type  sudo tar xvfz xampp-linux-1.8.1.tar.gz -C  /opt 
  • Now the file will be extracted in opt/lampp directory.

Step 3: Start

  • To start XAMPP simply call this command:
      sudo /opt/lampp lampp start

  • You should now see something like this on your screen:
         
Now your lampp is Ready. Apache and MySQL  are running.
If you get any error messages please take a look at the Linux FAQ.

Step 4: Test

OK, that was easy but how can you check that everything really works? Just type in the following URL at your favourite web browser:  
http://localhost



Here you go Xampp/Lampp is installed now on your Machine. :)

Click Here for Yii Installation

Thursday, October 4, 2012

This blog is specially designed for the Yii Framework  tutorial. Here I will start the tutorial from very basics of Yii Framework like Hello World :). And then step by step I will increase the level. I will also describe the problems which I use to get during development so that a very new developer can also understand the problems.

On Yii framework there are a lot of tutorials are present but I could not found any website which is explaining from basic. So this blog will also be helpful for a novice developer in this field. I would like to get comment and suggestion. 

Thank You