Wiki

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

Customize your Growl/Alert msg easy and quickly

Created about a year ago by Scott_HuangTips0 comments – viewed 4,149 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,679 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 5,779 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,148 times – ( +2 ) – version 2.0
Use this extension : yii2-relation-trait

Yii2: Query build for complexity SQL

Created 8 months ago by Scott_HuangTips0 comments – viewed 5,507 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,842 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,405 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,535 times – ( +2 )
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)

Yiistrap TbHtml::navbarSearchForm

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

Reading the doc

Created 5 years ago by zaccariaTips0 comments – viewed 7,546 times – ( +21 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc