Wiki

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

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 2 years ago by c@cbaHow-tos0 comments – viewed 8,792 times – ( +4 ) – version 1.1
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

Directory independent extensions

Created 4 years ago by GOshaTips3 comments – viewed 8,782 times – ( +15 / -1 ) – version 1.1
Many people want to use downloaded extensions in their own way. As for me most of the extensions require me to correct Yii::import() instructions inside their source code. All these extensions are directory dependent. To avoid the situation described above, I suggest to implement pseudo-anonymous aliases:

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 6 months ago by Kartik VTips5 comments – viewed 8,753 times – ( +29 / -4 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

get summary of related model via STAT relation

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

Extending CJuiDialog

Created 2 years ago by dstudioHow-tos0 comments – viewed 8,732 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,719 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

Using Pear Mail Mail_Mime and Mail_Queue

Created 3 years ago by LorenHow-tos2 comments – viewed 8,710 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.

Simple Mail Queue

Created about a year ago by waterloomattTutorials1 comment – viewed 8,678 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.

Shrink Yii, help your IDE and speed up copying

Created 3 years ago by dckurushinTips4 comments – viewed 8,665 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,654 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.