Wiki

Sorted by viewsX
Displaying 391-400 of 719 result(s).

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

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

CJuiTabs Content

Created 2 years ago by mbalaTips2 comments – viewed 11,091 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

How to implement an event and attach it in a behavior

Created about a year ago by seb7How-tos0 comments – viewed 11,056 times – ( +6 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

Create sitemap.xml file dynamically on root folder with one hit

Created 2 years ago by kiran sharmaHow-tos1 comment – viewed 11,038 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

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

Created about a year ago by Gerhard LiebenbergHow-tos0 comments – viewed 11,032 times – ( +4 / -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.

Managing constants easily

Created 3 years ago by briiC.lvTips4 comments – viewed 11,019 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Integrating FirePHP

Created 4 years ago by ricardogranaTutorials5 comments – viewed 11,002 times – ( +8 ) – version 1.1
Install Firebug plugin for Firefox from here.

AutoTimestampBehavior

Created 5 years ago by jonahTutorials1 comment – viewed 10,958 times – ( +2 / -2 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

A Multi-Tenant Strategy using Yii and MySQL

Created 12 months ago by JFReyesHow-tos8 comments – viewed 10,923 times – ( +8 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Using SQLite and CDbMessageSource as a module

Created 2 years ago by pheadeauxHow-tos5 comments – viewed 10,911 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.