Wiki

Articles tagged with "yii2", sorted by date (updated)X
Displaying 41-50 of 78 result(s).

Create Form With DynamicModel

Updated 3 years ago by Misbahul D MunirTips4 comments – viewed 20,893 times – ( +2 / -1 ) – version 2.0
In yii2 we can create form without create FormModel. Here we go
tags: form, yii2, model

MongoDB's RBAC support class extending BaseManager

Updated 3 years ago by edoardo849How-tos1 comment – viewed 7,711 times – ( -1 ) – version 2.0
Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in common\components and modify your params.php file like this:
tags: mongodb, rbac, yii2

How to use GridView with AJAX

Updated 3 years ago by YiiJekaHow-tos6 comments – viewed 60,924 times – ( +14 / -1 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

Role Management

Updated 3 years ago by Dency G BHow-tos0 comments – viewed 12,420 times – ( +3 / -1 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Expert's model generation with Gii

Updated 3 years ago by le_topTips0 comments – viewed 9,685 times – ( +3 / -1 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

Nested inline active fields inside Bootstrap horizontal forms

Updated 3 years ago by Kartik VHow-tos2 comments – viewed 41,145 times – ( +42 / -1 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Relational data fields display and edit with the yii2-detail-view extension

Updated 3 years ago by Kartik VTutorials2 comments – viewed 44,888 times – ( +40 / -1 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

How to use yii2-authclient to communicate with Twitter using Single Access Token

Updated 3 years ago by Antonio RamirezHow-tos2 comments – viewed 16,231 times – ( +4 / -1 ) – version 2.0
This tutorial is not about allowing users to sign into your application by using any of the OAuth providers available with the official yii2-authclient extension, it is about how to interact with your Twitter account, the one you set for your Yii2 app to promote your site, using the Single Access Token technique.

Managing different Bootstrap form layouts with yii2-field-range extension.

Updated 3 years ago by Kartik VHow-tos0 comments – viewed 19,616 times – ( +37 / -1 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Book Has Author - Many to Many relations using Kartik\Select2

Updated 3 years ago by thiagoc7How-tos2 comments – viewed 16,497 times – ( +4 / -1 ) – version 2.0
I could make this work following same useful tips from this post.