Using yii2-datecontrol within yii2-detail-view

About DateControl and DetailView: The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs. The yii2-detail-view extension, enhances the yii DetailView and enables you to toggle between VIEW and EDIT modes with other features. This article explains you how you combine both. That is, how you can enable […]

Read More

Wrong URL Parameters in Yii2 form with GET method

This article explains a specific issue with the URL generated when using the GET method with Yii2 forms. Let’s consider, you are using an ActiveForm in yii (both v1.x or 2), with a GET method like below: // In Yii 2 $form = ActiveForm::begin([ ‘id’ => ‘order-search-form’, ‘method’ => ‘get’, ]); echo $form->field($searchModel, ‘id’); echo […]

Read More

Top 5 Apache settings for a new Yii 2 app

So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 application. Note: If you are using one of these templates yii2-app-practical, yii2-app-practical-a, or yii2-app-practical-b to install your app, then the following […]

Read More

Override Bootstrap CSS & JS for Yii 2.0 widgets

Bootstrap Extension Widgets In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii\bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like: ‘components’ […]

Read More