Wiki articles in category How-tos

Showing 41-60 of 70 items.
Created 4 years ago by ThePr0f3550r, updated 3 years ago by YiiJeka.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

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"

8 0
22 followers
Viewed: 102 651 times
Version: 2.0
Category: How-tos
Created 4 years ago by ThePr0f3550r, updated 10 months ago by alrazi.

Creating a Dependent Dropdown From Scratch in Yii2

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

3 1
11 followers
Viewed: 89 791 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Nested inline active fields inside Bootstrap horizontal forms

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.

5 0
40 followers
Viewed: 44 838 times
Version: 2.0
Category: How-tos
Created 4 years ago by Nisanth thulasi, updated 4 years ago by Nisanth thulasi.

How to create a Widget - Recent Comments widget

Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

5 0
5 followers
Viewed: 29 666 times
Version: all
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

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

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: 17 984 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

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

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: 21 613 times
Version: 2.0
Category: How-tos
Created 4 years ago by thiagoc7, updated 4 years ago by thiagoc7.

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

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

0 0
6 followers
Viewed: 18 698 times
Version: 2.0
Category: How-tos
Created 4 years ago by thiagoc7, updated 4 years ago by thiagoc7.

using 'whenClient' for complex client side validation

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

0 0
4 followers
Viewed: 8 774 times
Version: 2.0
Category: How-tos
Created 4 years ago by CTala, updated 4 years ago by CTala.

Yii2 and Pdf files with Mpdf

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: 20 359 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

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

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

0 0
37 followers
Viewed: 13 335 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

Configuring different sessions for backend and frontend in Yii advanced app

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.

3 0
46 followers
Viewed: 33 454 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 3 years ago by Kartik V.

Save and Display Date/Time Fields in different formats in Yii2

You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

0 0
51 followers
Viewed: 132 928 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Displaying uploaded file from DB for update with FileInput widget

This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

1 3
42 followers
Viewed: 43 269 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Managing a star rating with the StarRating widget in Yii 2

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: 14 813 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

How to read HTML5 Multiple File Input from controller?

0 2
39 followers
Viewed: 11 874 times
Version: all
Category: How-tos
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

Cómo enviar emails usando SMTP

2 0
2 followers
Viewed: 13 550 times
Version: 2.0
Category: How-tos
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

How to send emails using SMTP

5 0
8 followers
Viewed: 79 074 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 5 months ago by CeBe.

How to use GridView with AJAX

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.

9 0
15 followers
Viewed: 65 850 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 4 years ago by Antonio Ramirez, updated 2 years ago by Cozumel.

Escape from Default's Yii2 Delete Confirm Box

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 30 863 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

Displaying, Sorting and Filtering Model Relations on a GridView

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

24 0
29 followers
Viewed: 219 791 times
Version: 2.0
Category: How-tos