Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 11-20 of 154 result(s).

Multi Data Provider

Updated about a year ago by Sharon LavieTips0 comments – viewed 9,822 times – ( +1 / -1 ) – version 1.1
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

Yii2: Query build for complexity SQL

Updated 2 years ago by Scott_HuangTips0 comments – viewed 8,642 times – ( -1 ) – version 2.0
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

View a related field in CGridView

Updated 2 years ago by rafaelt88Tips1 comment – viewed 11,808 times – ( +6 / -1 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Load & Save With Relation

Updated 2 years ago by moo.tensaiTips0 comments – viewed 8,505 times – ( +2 / -1 ) – version 2.0
Use this extension : yii2-relation-trait

Building a search GET request with scenarios ; calling a SearchModel from URLs...

Updated 2 years ago by Louis GacTips0 comments – viewed 9,311 times – ( +1 / -1 ) – version 2.0
Search Models are a very elegant and powerful way to build an Active Data Provider. If you use them a lot, you'll quickly need to use scenarios, which will lead you to a very DRY Controller code.
tags: search, get, Scenarios

Customize your Growl/Alert msg easy and quickly

Updated 2 years ago by Scott_HuangTips0 comments – viewed 6,854 times – ( +3 / -2 ) – version 2.0
I leverage Kartik's notification widgets.

Things to Consider when application hosting on AppFog

Updated 2 years ago by VINAY Kr. SHARMATips0 comments – viewed 3,746 times – ( +1 / -1 ) – version 1.1
I faced many issues when hosted our company website on AppFog.

Using PayPal IPN with Yii2

Updated 2 years ago by dariooTips0 comments – viewed 6,632 times – ( -1 ) – version 2.0
I'm using PayPal's script from

Debuging variables in Yii2

Updated 2 years ago by johonunuTips3 comments – viewed 15,487 times – ( +2 / -2 ) – version 2.0
This tutorial is explained following "basic" application structure.

Selecting best language based on Browser language and available languages.

Updated 2 years ago by le_topTips0 comments – viewed 6,183 times – ( +2 / -1 ) – version 1.1
Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.