Wiki articles in category How-tos tagged with "yii2"

Showing 1-20 of 46 items.

MongoDB's RBAC support class extending BaseManager

Created 11 years ago by edoardo849 edoardo849, updated 11 years ago by edoardo849 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: 15 074 times
Version: 2.0
Category: How-tos
Tags: mongodb, rbac, yii2

Yii2cdn Component

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

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

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

How to use BootstrapInterface

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 11 years ago by Antonio Ramirez 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: 22 408 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 23 667 times
Version: 2.0
Category: How-tos
0 2
40 followers
Viewed: 24 132 times
Version: 2.0
Category: How-tos

Role Management

Created 11 years ago by Dency G B Dency G B, updated 11 years ago by Dency G B 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: 27 249 times
Version: 2.0
Category: How-tos
Tags: rbac, yii2

Managing a star rating with the StarRating widget in Yii 2

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V 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: 27 509 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by Wade Shuler Wade Shuler, updated 9 years ago by Wade Shuler 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: 27 598 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 11 years ago by Antonio Ramirez 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: 27 719 times
Version: 2.0
Category: How-tos

Automatic Parameter Binding to POST vars in Yii2

Created 12 years ago by aarondfrancis aarondfrancis, updated 11 years ago by YiiJeka YiiJeka.

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

0 0
4 followers
Viewed: 28 000 times
Version: 2.0
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

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

4 0
7 followers
Viewed: 31 623 times
Version: 2.0
Category: How-tos

Moving the vendor directory for multiple projects

Created 11 years ago by mariosimaremare mariosimaremare, updated 11 years ago by mariosimaremare mariosimaremare.

This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

6 0
5 followers
Viewed: 34 151 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

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

I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

3 0
8 followers
Viewed: 34 627 times
Version: 2.0
Category: How-tos

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

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

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.

0 0
37 followers
Viewed: 35 201 times
Version: 2.0
Category: How-tos
2 0
2 followers
Viewed: 36 727 times
Version: 2.0
Category: How-tos

Use minified version of JqueryAsset, BootstrapAsset (and all default assets)

Created 10 years ago by robregonm robregonm, updated 10 years ago by robregonm robregonm.

By default, Yii 2.0 chooses to use the non-minified version of Jquery and Bootstrap files (CSS and JS). However, there's a simple way to indicate Yii to use the minified version.

9 0
6 followers
Viewed: 37 596 times
Version: 2.0
Category: How-tos
2 0
3 followers
Viewed: 39 121 times
Version: 2.0
Category: How-tos

Yii2: How to create/develop a new extension using Composer locally without version control or Git

Created 9 years ago by Wade Shuler Wade Shuler, updated 6 years ago by jwerner jwerner.

Using a version control system, like Git, is nice. However, when building an extension from scratch and loading it via Composer, it adds a lot of pain in the butt steps. You have to commit your changes, update composer to pull them over, then notice there is an error, fix, commit, update. repeat.. I don't want all my baby steps under Git. Sure, I could edit my commit history, but c'mon. Just let m...

7 0
6 followers
Viewed: 40 605 times
Version: 2.0
Category: How-tos

Upload files in Yii2 with MongoDb and GridFs

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

Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

6 0
6 followers
Viewed: 41 396 times
Version: 2.0
Category: How-tos

How to make UrlManager createAbsoluteUrl work with sub-domains

Created 8 years ago by Wade Shuler Wade Shuler, updated 7 years ago by CeBe CeBe.

Upon creating my Yii2 Members System, I have ran into a few snags along the way that forced me to extend and bend Yii2 to my will.

1 0
3 followers
Viewed: 41 898 times
Version: 2.0
Category: How-tos