Wiki

Sorted by date (updated)X
Displaying 541-550 of 752 result(s).

Access log output from unit tests

Updated 3 years ago by MikeTips2 comments – viewed 6,117 times – ( +4 ) – 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.

CSV Export

Updated 3 years ago by JohnPollardHow-tos5 comments – viewed 13,835 times – ( +4 ) – version 1.1
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.
tags: csv, export

Show captcha after <N> unsuccessfull attempts

Updated 3 years ago by zitterHow-tos7 comments – viewed 16,910 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Custom Autocomplete Display and Value Submission

Updated 3 years ago by SebKHow-tos5 comments – viewed 38,000 times – ( +14 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Adding Bash Command Completion for Yii Commands

Updated 3 years ago by Dustin OpreaHow-tos0 comments – viewed 7,732 times – ( +3 ) – version 1.1
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Deploy yii on pagoda box

Updated 3 years ago by francis jaTutorials0 comments – viewed 7,041 times – ( +4 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

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

Updated 3 years ago by pckabeerHow-tos1 comment – viewed 15,554 times – ( +7 ) – version 1.1
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 enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

Display an AJAX tree from your DB using CTreeView

Updated 3 years ago by Fran├žois GannazTutorials10 comments – viewed 50,954 times – ( +21 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

Use phing to make Yii application "installable"

Updated 3 years ago by Maurizio Domba CerinHow-tos3 comments – viewed 8,057 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

How to log context information to logger (session id, user, ...)

Updated 3 years ago by ajsharmaTutorials0 comments – viewed 13,729 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging