Programming With Yii2: Exploring MVC, Forms and Layouts

As my Programming With Yii2 series continues at Tuts+, part two explores MVC, Forms and Layouts: “This tutorial will cover some of Yii’s more basic concepts related to its implementation of the MVC framework: Models, Views and Controllers. We’ll also explore layouts and customization of navigation menus and Bootstrap elements. For these examples, we’ll imagine we’re building a […]

Read More

How to Display Form Errors (the ErrorSummary)

Let’s say you’re using a validator that doesn’t correspond to a specific field and you want to display it on the form. For example, I’m using the compare validator and wish the error summary to appear on the create form. [php] <?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model frontend\models\Participant */ […]

Read More