Wiki

Articles in category "tips", sorted by commentsX
Displaying 111-120 of 152 result(s).

Customize your Growl/Alert msg easy and quickly

Created about a year ago by Scott_HuangTips0 comments – viewed 4,286 times – ( +3 / -1 ) – version 2.0
I leverage Kartik's notification widgets.

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created 2 years ago by Ankit ModiTips0 comments – viewed 14,866 times – ( +3 ) – version 1.1
Hi Friends,

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

Created about a year ago by Louis GacTips0 comments – viewed 6,001 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

Load & Save With Relation

Created about a year ago by moo.tensaiTips0 comments – viewed 6,261 times – ( +2 ) – version 2.0
Use this extension : yii2-relation-trait

Yii2: Query build for complexity SQL

Created 9 months ago by Scott_HuangTips0 comments – viewed 5,657 times – version 2.0
As for complexity SQL query we have two solutions as below, I will discuss #2 in this article.

Multi Data Provider

Created 2 years ago by Sharon LavieTips0 comments – viewed 7,923 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).

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

Created 4 months ago by AlaFalakiTips0 comments – viewed 5,883 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)

Set a menu - reusable code

Created 2 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 5,587 times – ( +2 )
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

Boost composer-asset-plugin update speed

Created 22 days ago by schmunkTips0 comments – viewed 2,815 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.

Yiistrap TbHtml::navbarSearchForm

Created 2 years ago by PatriceTips0 comments – viewed 8,422 times – version 1.1
Hi all,