filmov
tv
#3 Databases, ORMs ... and why you don't need gii - Yii2 Tutorial

Показать описание
Lecture #3/12 -An overview on how Yii2 manipulates databases. We introduce the all important Object Relational Mapping (ORM) concept, and how this is implemented in Yii2 by the ActiveRecord class. We tried out gii (the code generation tool of Yii2) to produce a grid of records with CRUD capabilities (Create-Read-Update-Delete). We introduce the all important Gridview widget. However we remain skeptical whether the benefits of using gii outweigh the lurking pitfalls.
----------------------------------------------------------------------------------------------------------------------------------------------ERRATA
In the lecture I wrongly refer to ORM as Object Relational Model. The correct term is Object Relational Mapping. It is a technique implemented through the ActiveRecord class (Model) of Yii2.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
The compressed file (orionbbw3) in the link below contains all Models+Views+Controllers necessary for Lecture 3.
You can use the material in the video freely as long as you reference your sources.
We would greatly appreciate your support at:
Many thanks
----------------------------------------------------------------------------------------------------------------------------------------------ERRATA
In the lecture I wrongly refer to ORM as Object Relational Model. The correct term is Object Relational Mapping. It is a technique implemented through the ActiveRecord class (Model) of Yii2.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
The compressed file (orionbbw3) in the link below contains all Models+Views+Controllers necessary for Lecture 3.
You can use the material in the video freely as long as you reference your sources.
We would greatly appreciate your support at:
Many thanks