Wiki

Sorted by viewsX
Displaying 401-410 of 687 result(s).

Encapsulate db and module configurations

Created 4 years ago by ricardogranaTutorials3 comments – viewed 9,103 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

How-To: Create Token Authenticated Web Services

Created 6 months ago by hemcHow-tos1 comment – viewed 9,074 times – ( +8 ) – version 1.1
This article is about implementing authentication to Yii based web services.

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

Created 2 years ago by samdarkHow-tos1 comment – viewed 9,051 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:

CButtonColumn and Font Awesome icons

Created 11 months ago by DerekCTips3 comments – viewed 8,942 times – ( +4 )
I was looking for a way to use Font Awsome icons instead of the default images in a CGridView -> CButtonColumn. Perhaps this will be useful to someone.

Create a custom menu using CMenu data-items (flat or tree structure)

Created 9 months ago by KonApazHow-tos0 comments – viewed 8,895 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.

Upload CSV File

Created about a year ago by bhavesh vaghelaTutorials1 comment – viewed 8,895 times – ( +5 ) – version 1.1
View file

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

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 8,858 times – ( +3 / -1 ) – version 1.1
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.

Getting nulls from database instead of empty strings

Created 3 years ago by samdarkTips2 comments – viewed 8,850 times – ( +12 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

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

Created 2 years ago by c@cbaHow-tos3 comments – viewed 8,842 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.

"safe" and "unsafe" Model validators (massive assignments)

Created about a year ago by KonApazHow-tos4 comments – viewed 8,812 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.