Wiki

Articles in category "tips", sorted by viewsX
Displaying 61-70 of 152 result(s).

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,091 times – ( +3 ) – version 1.1
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

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

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

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 14,619 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Managing constants easily

Created 4 years ago by briiC.lvTips4 comments – viewed 14,333 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

adding class and links to Ctreeview node

Created 5 years ago by bingjie2680Tips2 comments – viewed 14,052 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

CJuiTabs Content

Created 3 years ago by mbalaTips3 comments – viewed 13,896 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

New Relic Error Alert with Yii

Created 2 years ago by simon604Tips2 comments – viewed 13,888 times – ( +6 ) – version 1.1
Introduction

Using events with CAction classes

Created 4 years ago by Antonio RamirezTips0 comments – viewed 13,835 times – ( +10 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Using MBMenu and Rights to automatically create menu item for your modules

Created 5 years ago by dinhtrungTips2 comments – viewed 13,476 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 3 years ago by Xgamer99Tips3 comments – viewed 12,952 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.