Wiki

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

Auto TDD - How to auto-run PHPUnit

Created 5 years ago by imeheszTips3 comments – viewed 15,330 times – ( +3 / -1 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

A simple action for XUpload extension

Created 5 years ago by tydeas_drTips1 comment – viewed 15,240 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

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 15,049 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,727 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.

New Relic Error Alert with Yii

Created 3 years ago by simon604Tips2 comments – viewed 14,260 times – ( +6 ) – version 1.1
Introduction

adding class and links to Ctreeview node

Created 5 years ago by bingjie2680Tips2 comments – viewed 14,188 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 4 years ago by mbalaTips3 comments – viewed 14,113 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Using events with CAction classes

Created 4 years ago by Antonio RamirezTips0 comments – viewed 14,038 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.

Add model validator in Controller

Created about a year ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 13,645 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

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

Created 5 years ago by dinhtrungTips2 comments – viewed 13,612 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.