Yii2 Domain Model
Module is the base class for module and application classes.
Yii2 domain model. Fonts javascript etc on a web page to be requested from another domain outside the domain the resource originated from. If you d like to know when the next yii2 tutorial arrives follow tutspluscode or reifman on twitter or check my author page. Model is the base class for data models.
Goal of this library is to introduce domain driven design ddd principles to yii2 projects and to fix activerecord problem of domain layer in applications with medium and large domain area. Configuring different sessions for backend and frontend in yii advanced app. Classes for a domain driven design inspired workflow with yii 2 0 framework.
Configuring different sessions for backend and frontend in yii advanced application template guide how to actually separate frontend user and backend admin on yii2 advanced. Modelevent represents the parameter needed by yii base model events. We re now ready to explore more sophisticated features in yii2.
Php composer phar require prefer dist albertborsos yii2 ddd to the require section of your composer json file. Domain sub domains subdomain url url manager urlmanager yii2 yii2 gridview sorting and searching with a junction table column many to many relationship created 4 years ago by amjad khan updated 4 years ago by amjad khan. My author page will.
In particular javascript s ajax calls can use the xmlhttprequest mechanism. The preferred way to install this extension is through composer. Cross origin resource sharing cors is a mechanism that allows many resources e g.
And you should see your application running on your domain without the yii2 debug toolbar at the bottom like this. Key web server settings after installing a fresh yii 2 basic or advanced app. This article explains how you can use the extension with additional settings to your controller and view objects.