Wiki

Articles tagged with "yii2"X
Displaying 31-40 of 78 result(s).

How to implement form events

Created 3 years ago by Antonio RamirezHow-tos4 comments – viewed 19,881 times – ( +6 / -1 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

Write & use a custom Component in Yii2.0

Created 3 years ago by sirin kHow-tos4 comments – viewed 77,031 times – ( +18 / -1 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

Role Management

Created 3 years ago by Dency G BHow-tos0 comments – viewed 12,272 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

Created 3 years ago by le_topTips0 comments – viewed 9,560 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.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created 3 years ago by ThePr0f3550rHow-tos9 comments – viewed 93,834 times – ( +16 / -2 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

Creating a Dependent Dropdown From Scratch in Yii2

Created 3 years ago by ThePr0f3550rHow-tos4 comments – viewed 77,721 times – ( +8 / -2 ) – version 2.0
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

Nested inline active fields inside Bootstrap horizontal forms

Created 3 years ago by Kartik VHow-tos2 comments – viewed 40,541 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.

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

Created 3 years ago by Antonio RamirezHow-tos2 comments – viewed 15,959 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.

Created 3 years ago by Kartik VHow-tos0 comments – viewed 19,401 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

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