Wiki

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

MongoDB's RBAC support class extending BaseManager

Updated 3 years ago by edoardo849How-tos1 comment – viewed 7,493 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 58,980 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

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Updated 3 years ago by Kartik VTips7 comments – viewed 41,282 times – ( +39 / -5 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

Role Management

Updated 3 years ago by Dency G BHow-tos0 comments – viewed 12,049 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,384 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 40,035 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 43,796 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 15,565 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,101 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,098 times – ( +4 / -1 ) – version 2.0
I could make this work following same useful tips from this post.