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

Showing 1-20 of 46 items.

Automatic Parameter Binding to POST vars in Yii2

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

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

0 0
4 followers
Viewed: 27 056 times
Version: 2.0
Category: How-tos

Upload files in Yii2 with MongoDb and GridFs

Created 11 years ago by edoardo849, updated 5 years ago by 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: 39 033 times
Version: 2.0
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

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

4 0
7 followers
Viewed: 30 152 times
Version: 2.0
Category: How-tos

How to implement cron in Yii 2

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

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: 104 687 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

How to use BootstrapInterface

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

Displaying, Sorting and Filtering Model Relations on a GridView

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

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.

49 0
37 followers
Viewed: 332 196 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez, updated 9 years ago by Cozumel.

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

How to use GridView with AJAX

Created 11 years ago by Antonio Ramirez, updated 7 years ago by CeBe.

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.

10 0
15 followers
Viewed: 88 367 times
Version: 2.0
Category: How-tos
Tags: pjax, widget, yii2

How to send emails using SMTP

Created 11 years ago by robregonm, updated 6 years ago by Wade Shuler.
6 0
11 followers
Viewed: 141 414 times
Version: 2.0
Category: How-tos

Cómo enviar emails usando SMTP

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

How to read HTML5 Multiple File Input from controller?

Created 11 years ago by Kartik V, updated 6 years ago by samdark.
0 2
40 followers
Viewed: 22 651 times
Version: 2.0
Category: How-tos

Managing a star rating with the StarRating widget in Yii 2

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

Displaying uploaded file from DB for update with FileInput widget

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

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?

2 3
43 followers
Viewed: 64 223 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, updated 9 years ago by 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: 50 956 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, updated 11 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: 22 467 times
Version: 2.0
Category: How-tos

Yii2 and Pdf files with Mpdf

Created 11 years ago by CTala, updated 11 years ago by 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: 33 566 times
Version: 2.0
Category: How-tos

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

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

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

0 0
6 followers
Viewed: 66 158 times
Version: 2.0
Category: How-tos

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

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

Nested inline active fields inside Bootstrap horizontal forms

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

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