Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 111-120 of 319 result(s).

javascript + tabular input

Created 3 years ago by zaccariaHow-tos4 comments – viewed 26,696 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.

Keeping a running total in a CGridView

Created 3 years ago by Steve FriedlHow-tos4 comments – viewed 23,067 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 2 years ago by skwordenHow-tos4 comments – viewed 13,321 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

Image resize on the fly

Created 2 years ago by TpoxaHow-tos4 comments – viewed 13,866 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

Updating fields on a form with Ajax and Json

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 46,397 times – ( +12 / -1 ) – version 1.1
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 29,803 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Sub-domains with different databases in Yii!

Created 3 years ago by jwerdHow-tos4 comments – viewed 12,410 times – ( +2 ) – version 1.1
Sub-domains with different databases in Yii!

Using updateAll and deleteAll with scopes

Created 4 months ago by le_topHow-tos4 comments – viewed 5,129 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Alternative folder structure for a standard Yii app

Created about a year ago by TrejderHow-tos4 comments – viewed 8,763 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Client-side form validation using Twitter Bootstrap's Popovers

Created about a year ago by TrejderHow-tos4 comments – viewed 29,104 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.