Wiki articles in category How-tos

Showing 41-60 of 68 items.
Created 3 years ago by Kartik V, updated 3 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: 42 318 times
Version: 2.0
Category: How-tos
Created 3 years ago by Nisanth thulasi, updated 3 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: 28 223 times
Version: all
Category: How-tos
Created 3 years ago by Antonio Ramirez, updated 3 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: 16 973 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 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: 20 251 times
Version: 2.0
Category: How-tos
Created 3 years ago by thiagoc7, updated 3 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: 17 091 times
Version: 2.0
Category: How-tos
Created 3 years ago by thiagoc7, updated 3 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: 6 984 times
Version: 2.0
Category: How-tos
Created 3 years ago by CTala, updated 3 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: 18 992 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 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: 12 073 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 2 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: 31 551 times
Version: 2.0
Category: How-tos
Created 3 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
50 followers
Viewed: 126 189 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 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: 40 297 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 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: 13 815 times
Version: 2.0
Category: How-tos
Created 3 years ago by Kartik V, updated 3 years ago by Kartik V.

How to read HTML5 Multiple File Input from controller?

0 2
39 followers
Viewed: 10 886 times
Version: all
Category: How-tos
Created 3 years ago by robregonm, updated 3 years ago by robregonm.

Cómo enviar emails usando SMTP

2 0
2 followers
Viewed: 11 454 times
Version: 2.0
Category: How-tos
Created 3 years ago by robregonm, updated 3 years ago by robregonm.

How to send emails using SMTP

5 0
8 followers
Viewed: 70 902 times
Version: 2.0
Category: How-tos
Created 3 years ago by Antonio Ramirez, updated 30 days 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.

8 0
15 followers
Viewed: 62 560 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2
Created 3 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: 28 720 times
Version: 2.0
Category: How-tos
Created 3 years ago by Antonio Ramirez, updated 3 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.

21 0
28 followers
Viewed: 178 412 times
Version: 2.0
Category: How-tos
Created 3 years ago by Antonio Ramirez, updated 3 years ago by Antonio Ramirez.

How to use BootstrapInterface

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

0 0
2 followers
Viewed: 10 361 times
Version: 2.0
Category: How-tos
Created 4 years ago by hemc, updated 4 years ago by hemc.

How to implement cron in Yii 2

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 62 007 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2