Yii Framework 2 : Scenarios

A model uses the yii\base\Model::$scenario property for the ‘Scenario’ concept. By default, a model supports only a single scenario named default. Yii2.0 framework model is designed in very comfortable way for dynamic logic based on scenario. In this tutorial i will share my experience about ‘Scenarios’. A model may be used in different scenarios in […]

Yii Framework 2 : URL Creation

Yii 2.0 having the url manager to handle and create urls in different way. The URL manager is a built-in application component named urlManager. We can access this component in web and console application via \Yii::$app->urlManager and it is available in framework by default. We can use use yii\helpers\Url; namespace. URL creation using Namespace Application urlManager And Request Redirect […]