Showing 501-520 of 827 items.

Access log output from unit tests

Created 14 years ago by Mike Mike, updated 14 years ago by Mike Mike. 2 comments

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.

3 0
2
Viewed: 18 909 times
Version: 1.1
Category: Tips

CSV Export

Created 14 years ago by JohnPollard JohnPollard, updated 14 years ago by JohnPollard JohnPollard. 5 comments

I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.

4 0
5
Viewed: 33 868 times
Version: 1.1
Category: How-tos

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 14 years ago by pckabeer pckabeer, updated 14 years ago by pckabeer pckabeer. 1 comment

Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue').
We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options.
This is a rewrite of c@cba in the wiki article of [enumDropdownList](http://www...

6 0
3
Viewed: 28 896 times
Version: 1.1
Category: How-tos