Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 91-100 of 183 result(s).

Converting an Artisteer Theme to Yii

Created 2 years ago by bgleeHow-tos3 comments – viewed 15,000 times – ( +9 )
There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more general and will apply to some extent to other HTML templates that you may want to convert. I'll be covering the first approach in detail, while the second will be more of a general discussion.

Extending an ActiveRecord model

Created 3 months ago by BogseyHow-tos3 comments – viewed 3,719 times – ( +2 / -3 )
Introduction

Sub-domains with different databases in Yii!

Created about a year ago by jwerdHow-tos3 comments – viewed 7,974 times – ( +1 )
Sub-domains with different databases in Yii!

How to use an application behavior to maintain runtime configuration

Created about a year ago by zaccariaHow-tos3 comments – viewed 13,859 times – ( +24 )
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

How to use the official Yii installer for Composer

Created about a month ago by br0skHow-tos3 comments – viewed 3,213 times – ( +3 )
This way of using Composer is different from the Phundament 3 based wiki in that it is using the new official Composer installer for Yii. It is also only making use of Packagist not the packages at packages.phundament.com. This wiki doesn't aim to replace the Phundament 3 based wiki it is just another way of doing it and I really like the fact that it can use Packagist directly and not a separate repository.

How to translate and do the translations the easy way

Created about a year ago by Roman SolomatinHow-tos3 comments – viewed 24,328 times – ( +17 / -1 )
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.
tags: i18n

File uploads in CForm (Form builder)

Created about a year ago by Luke JurgsHow-tos2 comments – viewed 21,043 times – ( +8 )
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

How to handle decimal separators (e.g comma instead of dot) for l18n

Created about a year ago by jpabloHow-tos2 comments – viewed 6,290 times – ( +1 )
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

History Autocomplete

Created about a year ago by zaccariaHow-tos2 comments – viewed 5,495 times – ( +3 )
In application development we often have to choose how to mange recurrent values.
tags: autocomplete

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created about a year ago by c@cbaHow-tos2 comments – viewed 12,681 times – ( +11 )
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 drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).