Tag Archives: Yii Framework 2.0 Tutorial

Yii Framework 2 : Validation Rules for model attributes

After submitting the form data, We have to validate the input data information before we start to use. We can validate the inputs by calling the [[yii\base\Model::validate()]] method of yii2.0. Yii2.0 is giving the support for this data validation and also it is very easy way to test the input data. To check validate() of […]

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 […]