Installation of Yii Framework

2
2588
Yii Framework

In this tutorial today we will learn the step by step process for the installation of Yii farmework .

  • So follow the steps given below to get your Yii framework installed successfully on your machine :

  1. First of all install any text editor for PHP .
  2. So lets’s install netbeans which we will use as an text editor.
  3. For installing netbeans go to the following url https://netbeans.org
  4. So you will get the following window :

  5. Now click on the download button and you will be redirected to page as shown below :

  6. Now download the PHP and HTML version of netbeans as shown in the above image by the red arrows .
  7. Also install the jdk from oracle.com .
  8. Now visit the following URL to download Yii Framework yiiframework.com.
  9. So when you visit this site you will have the following layout :

  10. Click on the framework as shown in the above image
  11. Now the following page will appear as shown below:

  12. Click on the .zip file as shown in the above image and save it .
  13. Also download the xampp server and get it installed .
  14. Now the zip file which we have downloaded for yii framework consists of the following contents :

  15. From the above file list copy the folder name framework and then paste it in the XAMPP folder
  16. Now open the file xamppphpphp.ini as can be seen below:

  17. Now in the file php.ini find the XDebug as shown below:

  18. Edit the code and replace it with following path as shown above as follows :

  19. Now open the command prompt as shown below:

  20. Now swap the location to your XAMPP folder location:

  21. Now go to the folder framework through command prompt as shown below:

  22. Now go into the htdocs folder located in xampp folder and create a folder name demoyii.

  23. Now open the file name yiic.bat from the location xamppframework as shown below :

  24. Open the yiic.bat file which can be viewed as follows :

  25. Now edit the above line as shown :

  26. Now we have configured our php with Yii framework. So now we can run our command through command prompt which we left in step 18
  27. Now to run our application through yii the following is the syntax:
    yiic webapp and then the location of the folder where you want to create the app
  28. For example :


  29. It will automatically create MVC for the user as shown below:

  30. Now start your XAMMP server and then go to the url localhost/demoyii
  31. The following web page will be displayed :

  32. Thus with the help of Yii framework we can automatically create the layout of our web app.
  33. Thus we have successfully studied installation of Yii Framework.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here