Wiki

Sorted by viewsX
Displaying 431-440 of 714 result(s).

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 8,764 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Simple example for language translation

Created 8 months ago by RKAHow-tos2 comments – viewed 8,723 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

Extending CJuiDialog

Created 2 years ago by dstudioHow-tos0 comments – viewed 8,717 times – ( +2 / -2 ) – version 1.1
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips1 comment – viewed 8,706 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 8,702 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Using Pear Mail Mail_Mime and Mail_Queue

Created 3 years ago by LorenHow-tos2 comments – viewed 8,683 times – ( +7 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Shrink Yii, help your IDE and speed up copying

Created 3 years ago by dckurushinTips4 comments – viewed 8,657 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

Preventing CJuiTabs from hiding drop-down CMenu items

Created 3 years ago by Steve FriedlTips1 comment – viewed 8,638 times – ( +4 ) – version 1.1
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

Simple Mail Queue

Created about a year ago by waterloomattTutorials1 comment – viewed 8,621 times – ( +9 / -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 use Flash, Zend AMF and Yii Framework

Created 2 years ago by janistoTutorials0 comments – viewed 8,595 times – ( +3 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF