Wiki

Articles in category "tips", sorted by ratingX
Displaying 91-100 of 151 result(s).

Using CJuiDialog to edit rows in a CGridView

Created 5 years ago by Russell EnglandTips8 comments – viewed 32,121 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Created 3 years ago by Rajith RTips20 comments – viewed 39,562 times – ( +11 / -8 ) – version 1.1
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

Search a file size range in CGridView

Created 3 years ago by CrazyCatTips0 comments – viewed 5,668 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

Selecting best language based on Browser language and available languages.

Created about a year ago by le_topTips0 comments – viewed 4,269 times – ( +2 ) – 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.

Load & Save With Relation

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

Rendering Views and Updating them with Ajax

Created 2 years ago by Manish GuptaTips4 comments – viewed 18,796 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Set a menu - reusable code

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

Using sub query for doubletts

Created 3 years ago by mbTips3 comments – viewed 11,429 times – ( +2 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

Custom Archive in Blog system

Created 3 years ago by nirmalrokaTips0 comments – viewed 5,365 times – ( +2 ) – version 1.1
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

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

Created 3 years ago by sirin kTips0 comments – viewed 7,610 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.