Wiki articles tagged with "yii2"

Showing 1-20 of 79 items.

MongoDB's RBAC support class extending BaseManager

Created 5 years ago by edoardo849, updated 5 years ago by edoardo849.

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:

0 0
4 followers
Viewed: 10 215 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Locking your Yii 2 project package versions with composer.lock

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 11 144 times
Version: 2.0
Category: Tips

Customize your Growl/Alert msg easy and quickly

Created 5 years ago by Scott_Huang, updated 5 years ago by Scott_Huang.

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 11 567 times
Version: 2.0
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 6 years ago by edoardo849, updated 6 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 13 332 times
Version: 2.0
Category: Tips

Yii2cdn Component

Created 4 years ago by junaidatari, updated 4 years ago by junaidatari.

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

0 0
2 followers
Viewed: 14 041 times
Version: 2.0
Category: How-tos
Tags: assets, CDN, yii2

How To: Custom Client Validation On Checkbox Toggle and Optional Input Field

Created 4 years ago by Wade Shuler, updated 4 years ago by Wade Shuler.

I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.

0 0
1 follower
Viewed: 14 703 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 6 years ago by Antonio Ramirez, updated 6 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 14 850 times
Version: 2.0
Category: How-tos

How to read HTML5 Multiple File Input from controller?

Created 6 years ago by Kartik V, updated a year ago by samdark.
0 2
40 followers
Viewed: 15 027 times
Version: 2.0
Category: How-tos

How to store array/widget configuration to the database with config validation rules

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

Note the tag {{homeUrl}} will be dynamically replaced at runtime.

0 3
40 followers
Viewed: 15 141 times
Version: 2.0
Category: Tutorials

My Own Components Folder in Yii2

Created 6 years ago by CTala, updated 6 years ago by CTala.

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 15 802 times
Version: 2.0
Category: Tips

Using the yii2-datecontrol extension along with yii2-detail-view widget

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 16 039 times
Version: 2.0
Category: How-tos

Managing a star rating with the StarRating widget in Yii 2

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

1 3
41 followers
Viewed: 17 892 times
Version: 2.0
Category: How-tos

Using your own forked version of extensions with composer

Created 6 years ago by Kartik V, updated 5 years ago by Kartik V.

So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

3 2
40 followers
Viewed: 18 370 times
Version: 2.0
Category: Tutorials

Role Management

Created 5 years ago by Dency G B, updated 5 years ago by Dency G B.

Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.

0 0
5 followers
Viewed: 18 519 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Cómo enviar emails usando SMTP

Created 6 years ago by robregonm, updated 6 years ago by robregonm.
2 0
2 followers
Viewed: 19 903 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 6 years ago by aarondfrancis, updated 6 years ago by YiiJeka.

I wrote about this on my blog, but wanted to post it here too.

0 0
4 followers
Viewed: 20 153 times
Version: 2.0
Category: How-tos

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created 6 years ago by realtebo, updated 5 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 20 618 times
Version: 2.0
Category: Tutorials

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

Created 6 years ago by Antonio Ramirez, updated 6 years ago by Antonio Ramirez.

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 20 643 times
Version: 2.0
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 6 years ago by edoardo849, updated 6 years ago by CeBe.

suppose to have in Mongo a collection "user" like:

3 0
6 followers
Viewed: 21 155 times
Version: 2.0
Category: How-tos

Model validation for field ranges using yii2-field-range extension

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

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.

0 0
37 followers
Viewed: 21 304 times
Version: 2.0
Category: Tips