Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 191-200 of 254 result(s).

javascript + tabular input

Updated 2 years ago by Maurizio Domba CerinHow-tos4 comments – viewed 24,141 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

History Autocomplete

Updated 2 years ago by Maurizio Domba CerinHow-tos2 comments – viewed 6,722 times – ( +3 ) – version 1.1
In application development we often have to choose how to mange recurrent values.
tags: autocomplete

CGridView keep focus on the control after filtering

Updated 2 years ago by jayalaHow-tos2 comments – viewed 6,910 times – ( +5 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Creating a CSS Driven Drop Down Menu using CMenu

Updated 2 years ago by blindMoeHow-tos9 comments – viewed 57,563 times – ( +21 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Updated 2 years ago by samdarkHow-tos1 comment – viewed 8,669 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Authenticating against phpass hashes with Yii

Updated 2 years ago by Da:SourcererHow-tos18 comments – viewed 20,445 times – ( +26 ) – version 1.1
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Updated 2 years ago by c@cbaHow-tos3 comments – viewed 8,261 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

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

Updated 2 years ago by c@cbaHow-tos0 comments – viewed 7,696 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.

X-Sendfile - serve large static files efficiently from web applications

Updated 2 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 35,285 times – ( +26 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

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

Updated 2 years ago by jpabloHow-tos2 comments – viewed 9,999 times – ( +1 ) – 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.