Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 1-10 of 152 result(s).

Boost composer-asset-plugin update speed

Updated 15 days ago by samdarkTips0 comments – viewed 3,005 times – ( +4 ) – version 2.0
If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update tasks.

How to change GridView delete confirmation message for specific controllers only?

Updated 5 months ago by AlaFalakiTips0 comments – viewed 5,932 times – ( +1 ) – version 2.0
Hello, If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do: (I've only put the ActionColumn part of the GridView here to just give you the idea)

Multi Data Provider

Updated 7 months ago by Sharon LavieTips0 comments – viewed 7,944 times – ( +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 9 months ago by Scott_HuangTips0 comments – viewed 5,693 times – 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 about a year ago by rafaelt88Tips1 comment – viewed 9,299 times – ( +6 ) – 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 about a year ago by moo.tensaiTips0 comments – viewed 6,281 times – ( +2 ) – version 2.0
Use this extension : yii2-relation-trait

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

Updated about a year ago by Louis GacTips0 comments – viewed 6,043 times – ( +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 about a year ago by Scott_HuangTips0 comments – viewed 4,309 times – ( +3 / -1 ) – version 2.0
I leverage Kartik's notification widgets.

Things to Consider when application hosting on AppFog

Updated about a year ago by VINAY Kr. SHARMATips0 comments – viewed 2,665 times – ( +1 ) – version 1.1
I faced many issues when hosted our company website on AppFog.

Solution for session lose of Facebook iframe application in Internet Explorer .

Updated about a year ago by sirin kTips0 comments – viewed 7,674 times – ( +2 ) – version 1.1
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.