From the course: MVC Frameworks for Building PHP Web Applications

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Yii advanced concepts and next steps

Yii advanced concepts and next steps

From the course: MVC Frameworks for Building PHP Web Applications

Start my 1-month free trial

Yii advanced concepts and next steps

- [Instructor] Now that you have a basic idea of how Yii is structured, let's talk about how you might dive in and learn more about Yii, or get started building your own app. One thing to look at is the data layer. The basic way that it works is you're going to create a model class. The model class is then going to map the data structure to object, and from there, Yii provides ways to essentially directly talk to the data base. This all uses the active record pattern, which means you're not so much writing in SQL, as you are calling methods of your data base in order to get data or save data into your data base. If you want, you can also use the DAO, or data access object pattern. In addition, there's a Query Builder that's built into Yii that you can use to build your own queries and grab information from your data base. One of the nice features of Yii is it includes connections to a lot of other data base and data base type objects, including NoSQL data bases. There's now support…

Contents