After a long time i’m going to write a tut for you. Today i am just trying to explain you how you can build your web application using Yii2 PHP framework. We know that Yii2 is stand for ‘Yes it is’, by the help of this framework developer can build his/her web application easily without face any problem.
This is not only a framework, this is the real soul of php with quite good modifications.
Let me explain, How you can build your web app
There is the Two version of Yii2 is available in market. First one is the Yii2 basic and another one is Yii2 advance. let me describe you difference of this two Yii2. In basic you have only front-end mean if you want to make one front website then this is for you, but if you want to make a complete CMS type system then Advance is for you. in Advance version you will get backend and frontend in your system, In this installation i will show you how you can install both version in your Linux pc/laptop..
config/web.phpfile by entering a secret key for the
cookieValidationKeyconfiguration item (this is done automatically if you are installing Yii using Composer):
After those process your yii2 will start in your browser and then you can easily create your project…
Or in production execute
init in non-interactive mode.
php /path/to/yii-application/init --env=Production --overwrite=All
Now your yii2 advance version is ready for use 🙂
In this demo i’m using basic version of yii2 and in that i will install new theme for my project and then create grid of my school students with there details as like Data table of jquery.
CREATE TABLE demoschool ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, firstname VARCHAR(30) NOT NULL, lastname VARCHAR(30) NOT NULL, email VARCHAR(50), reg_date TIMESTAMP )
Hope you like this. If you have any query about anything about yii2 you can ask me i will try to figure out your problem .. Thanks
My third part is missing without your view. Be share this 🙂