Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 161-170 of 336 result(s).

How to translate and do the translations the easy way

Created 3 years ago by Roman SolomatinHow-tos3 comments – viewed 51,469 times – ( +27 / -2 ) – version 1.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.

How to keep filters simple in CGridView

Created 4 months ago by PeppeHow-tos2 comments – viewed 2,700 times – version 1.1
The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 36,363 times – ( +12 ) – version 1.1
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.

Moving the vendor directory for multiple projects

Created 4 months ago by mariosimaremareHow-tos2 comments – viewed 3,872 times – ( +4 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 10,994 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

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

Created 3 years ago by jpabloHow-tos2 comments – viewed 12,845 times – ( +2 ) – version 1.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 3 years ago by zaccariaHow-tos2 comments – viewed 7,683 times – ( +3 ) – version 1.1
In application development we often have to choose how to mange recurrent values.
tags: autocomplete

get summary of related model via STAT relation

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

custom sql query results to CDetailView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 20,181 times – ( +3 ) – version 1.1
This is a bried guide about displaying of custom sql query results.

Multiple files uploader with CMultiFileUpload

Created about a year ago by InterboyHow-tos2 comments – viewed 251,596 times – ( +7 ) – version all
Today I will show you how to handle multiple file upload step by step.