Wiki articles

Showing 1-20 of 651 items.

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

Created 9 years ago by le_top, updated 9 years ago by le_top.

Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.

1 0
1 follower
Viewed: 9 946 times
Version: 1.1
Category: Tips

Yii Rights Management Tips

Created 9 years ago by Rajith R, updated 9 years ago by Rajith R.

yii rights some tips..

2 0
4 followers
Viewed: 13 182 times
Version: 1.1
Category: Tips

Gettext and Poedit HOWTO

Created 9 years ago by Maug Lee, updated 9 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 12 969 times
Version: 1.1
Category: Tutorials

How to nest DB transactions without actually nesting them.

Created 9 years ago by le_top, updated 9 years ago by le_top.

To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.

1 0
1 follower
Viewed: 10 460 times
Version: 1.1
Category: How-tos

Themed translations (i18n)

Created 9 years ago by le_top, updated 9 years ago by le_top.

When using themes you want to changes some of the translations specifically to the theme while keeping the standard translations for most of the text. Duplicating the main translation file is a headache for maintainance. This how to provides a solution.

1 0
1 follower
Viewed: 16 461 times
Version: 1.1
Category: How-tos

Clear CGridView Filters, Sort & Pager

Created 9 years ago by le_top, updated 9 years ago by le_top.

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 18 646 times
Version: 1.1
Category: How-tos

How to filter data using a dropdown list?

Created 15 years ago by qiang, updated 11 years ago by Yang He.

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.

7 0
6 followers
Viewed: 41 850 times
Version: 1.1
Category: Tutorials
Tags:

Understanding series articles

Created 12 years ago by GOsha, updated 12 years ago by GOsha.

Here are all wiki articles from "Understanding" series by Yii wiki contributors:

16 0
12 followers
Viewed: 14 042 times
Version: 1.1
Category: Tips

How to use Highslide for image popups

Created 15 years ago by mocapapa, updated 13 years ago by wei.

>Highslide JS is an open source JavaScript software, offering a Web 2.0 approach to popup windows. It streamlines the use of thumbnail images and HTML popups on web pages. > > + No plugins like Flash or Java required. > + Popup blockers are no problem. The content expands within the active browser window. > + Single click. After opening the image or HTML popup, the user can scroll further down...

1 0
2 followers
Viewed: 27 749 times
Version: 1.1
Category: Tutorials
Tags: image, popups

Convert JSON data to html table for display on page

Created a year ago by shiv.

I have a calls which help me display json directly in html table.

0 0
1 follower
Viewed: 67 965 times
Version: all
Category: Tips
Tags: html, JSON

Application-driven database with CDbMigration and an extended CActiveRecord

Created 12 years ago by Tudor Ilisoi, updated 12 years ago by Tudor Ilisoi.

This is an incipient implementation of application-driven database with Yii.

8 0
10 followers
Viewed: 16 370 times
Version: 1.1
Category: Others

CJuiDatePicker extended for more/better language support

Created 9 years ago by le_top, updated 9 years ago by le_top.

The number of languages supported by the standard CJuiDatePicker implementation is limited and the language code to use is different from the application's language code. This Wiki shows how to improve on that.

1 0
1 follower
Viewed: 11 478 times
Version: 1.1
Category: How-tos

How to make use of a fragment cache

Created 15 years ago by dalip, updated 13 years ago by wei.
1 0
2 followers
Viewed: 17 228 times
Version: 1.1
Category: Tutorials

using editors of yiibooster - fix issues - configuration

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by Nur Rochim.

if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

4 0
4 followers
Viewed: 13 432 times
Version: 1.1
Category: How-tos

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 10 years ago by Gerhard Liebenberg, updated 9 years ago by Gerhard Liebenberg.

If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

3 0
2 followers
Viewed: 23 213 times
Version: 1.1
Category: How-tos

How to create a custom exception and show it friendly with CJuiDialog

Created 9 years ago by Fábio Sales, updated 9 years ago by Fábio Sales.

Sometimes we need to create our custom exception and show it to the end user through a friendly way . In this article, I'm showing how to do it using CJuidialog.

0 0
1 follower
Viewed: 22 254 times
Version: 1.1
Category: How-tos

How to use Flash, Zend AMF and Yii Framework

Created 12 years ago by janisto, updated 12 years ago by janisto.

This is a simple demo how to use Zend_AMF with Yii.

3 0
6 followers
Viewed: 15 775 times
Version: 1.1
Category: Tutorials

Selecting best language based on Browser language and available languages.

Created 9 years ago by le_top, updated 9 years ago by le_top.

Your application is international and you have to select the best language for the user. Your user may have selected 'fr_CA' and you have 'fr_FR' or 'fr' available. What do you do? Here is a tip.

2 0
1 follower
Viewed: 15 415 times
Version: 1.1
Category: Tips

Things to Consider when application hosting on AppFog

Created 9 years ago by VINAY Kr. SHARMA, updated 9 years ago by VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 7 914 times
Version: 1.1
Category: Tips

Using Yii Gallery Manager in your Yii 1.x application

Created 9 years ago by Trejder, updated 9 years ago by Trejder.

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 15 302 times
Version: 1.1
Category: How-tos