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

Showing 1-20 of 46 items.

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 407 times
Version: 2.0
Category: How-tos

C贸mo enviar emails usando SMTP

Created 11 years ago by robregonm robregonm, updated 11 years ago by robregonm robregonm.
2 0
2 followers
Viewed: 36 727 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

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

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

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: 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

Events registration examples

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

Register an event handler at Object-Level

2 0
2 followers
Viewed: 65 666 times
Version: 2.0
Category: How-tos
Tags: events, yii2

How to add Schema.org markup to Yii2 pages

Created 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez, updated 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez.

https://schema.org is a markup system that allows to embed structured data on their web pages for use by search engines and other applications. Let's see how to add Schema.org to our pages on Yii2 based websites using JSON-LD.

3 0
3 followers
Viewed: 95 143 times
Version: 2.0
Category: How-tos

How to redirect all emails to one inbox on Yii2 applications

Created 5 years ago by Gabriel A. L贸pez L贸pez Gabriel A. L贸pez L贸pez.

\yii\mail\BaseMailer::useFileTransport is a great tool. If you activate it, all emails sent trough this mailer will be saved (by default) on @runtime/mail instead of being sent, allowing the devs to inspect thre result.

6 0
4 followers
Viewed: 128 660 times
Version: 2.0
Category: How-tos
5 0
4 followers
Viewed: 63 895 times
Version: 2.0
Category: How-tos

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
0 0
5 followers
Viewed: 49 134 times
Version: 2.0
Category: How-tos

PHP built-in server integration

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

I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

1 0
3 followers
Viewed: 62 296 times
Version: 2.0
Category: How-tos
0 2
40 followers
Viewed: 24 132 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

Configuring different sessions for backend and frontend in Yii advanced app

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

Your need: You require that for shared machines, the user is authenticated again for a backend access again, if someone is logged in from frontend and vice versa.

4 0
46 followers
Viewed: 52 852 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

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

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

I could make this work following same useful tips from this post.

0 0
6 followers
Viewed: 68 547 times
Version: 2.0
Category: How-tos