Wiki

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

Useful Multilanguage extensions collection and use.

Created 4 years ago by cihappyTips2 comments – viewed 6,618 times – ( +3 / -1 ) – version 1.1
What I want to achieve:

Create thermometer using rgraph

Created 4 years ago by Ankit ModiTips2 comments – viewed 7,767 times – ( +4 / -1 )
Hi friends,

New Relic Error Alert with Yii

Created 4 years ago by simon604Tips2 comments – viewed 16,088 times – ( +6 / -1 ) – version 1.1
Introduction

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Created 4 years ago by Kostas Apazidis (KonApaz)Tips2 comments – viewed 29,263 times – ( +2 / -2 ) – version 1.1
First of all, You have to find out the class of the desired icon, so visit the http://getbootstrap.com/2.3.2/base-css.html#icons

A universal model attribute for its synthetic representation

Created about a year ago by Alexandre RodichevskiTips2 comments – viewed 4,473 times – ( -1 ) – version 2.0
It is convenient to use the same identification attribute, say info, in all of the active records of your application. It should be a virtual read-only attribute defined by a getter method, its label being the model name.

Access log output from unit tests

Created 5 years ago by MikeTips2 comments – viewed 8,450 times – ( +4 / -1 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Ajax update

Created 7 years ago by zaccariaTips2 comments – viewed 49,038 times – ( +21 / -3 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Code style

Created 7 years ago by zaccariaTips2 comments – viewed 18,302 times – ( +30 / -1 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

CGridView customized CCheckBoxColumn

Created 3 years ago by chandranTips2 comments – viewed 13,267 times – ( +5 / -1 ) – version 1.1
Hi friends,

Quick Tip about Pagination Params

Created 6 years ago by Antonio RamirezTips2 comments – viewed 30,206 times – ( +6 / -1 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination