Wiki articles in category How-tos

Showing 61-74 of 74 items.
Created 4 years ago by robregonm, updated 4 years ago by robregonm.

How to send emails using SMTP

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

8 0
15 followers
Viewed: 64 511 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: 29 902 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.

23 0
29 followers
Viewed: 213 523 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 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...

1 0
2 followers
Viewed: 11 118 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: 64 693 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2
Created 4 years ago by edoardo849, updated 4 years ago by CeBe.

MongoDb's embedded documents mapping for ActiveRecord in Yii2

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

3 0
7 followers
Viewed: 16 344 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 3 months ago by CeBe.

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.

4 2
39 followers
Viewed: 37 364 times
Version: 2.0
Category: How-tos
Created 4 years ago by edoardo849, updated 3 years ago by skworden.

Upload files in Yii2 with MongoDb and GridFs

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
5 followers
Viewed: 21 051 times
Version: 2.0
Category: How-tos
Created 4 years ago by aarondfrancis, updated 4 years ago by YiiJeka.

Automatic Parameter Binding to POST vars in Yii2

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

0 0
4 followers
Viewed: 15 964 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 3 years ago by Kostas Apazidis (KonApaz).

Remove Byte Order Mark (BOM) from files recursively

Ok, this wiki is not only for yii projects.

3 1
7 followers
Viewed: 21 400 times
Version: all
Category: How-tos
Created 4 years ago by Interboy, updated 3 years ago by Kostas Apazidis (KonApaz).

Multiple files uploader with CMultiFileUpload

Today I will show you how to handle multiple file upload step by step.

4 0
8 followers
Viewed: 269 966 times
Version: all
Category: How-tos
Created 5 years ago by Boaz, updated 4 years ago by Boaz.

Integrating ZF2 into Yii - use case demonstrated

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
7 followers
Viewed: 9 229 times
Version: 2.0
Category: How-tos
Created 5 years ago by le_top, updated 3 years ago by le_top.

Profiling using XDebug

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 12 989 times
Version: all
Category: How-tos