Wiki

Sorted by commentsX
Displaying 521-530 of 684 result(s).

How to use a component before every action of a controller

Created about a year ago by transistorTips1 comment – viewed 15,877 times – ( +2 / -1 ) – version 1.1
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

Profiling using XDebug

Created about a year ago by le_topHow-tos1 comment – viewed 5,012 times – ( +2 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Configuring CWebLogRoute for DB profiling

Created 2 years ago by Igor IvanovicTutorials1 comment – viewed 15,600 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

Cron Jobs in Yii

Created about a year ago by aarondfrancisHow-tos1 comment – viewed 12,262 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Simple Mail Queue

Created about a year ago by waterloomattTutorials1 comment – viewed 7,274 times – ( +8 / -2 )
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

How to provide a fallback or mapping for translation messages?

Created about a year ago by schmunkHow-tos1 comment – viewed 3,148 times – ( +5 )
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

model rules depended by user roles-permissions

Created about a year ago by KonApazHow-tos0 comments – viewed 5,258 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Search a file size range in CGridView

Created about a year ago by CrazyCatTips0 comments – viewed 3,282 times – ( +2 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

How to filter data using a dropdown list?

Created 5 years ago by qiangTutorials0 comments – viewed 22,919 times – ( +6 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

Understanding series articles

Created 2 years ago by GOshaTips0 comments – viewed 7,747 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors: