Wiki

Articles in category "how-tos"X
Displaying 41-50 of 182 result(s).

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

Created 6 months ago by skwordenHow-tos4 comments – viewed 5,485 times – ( +3 / -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.

pass variables or content block from view file to layout file

Created 6 months ago by yiqing95How-tos0 comments – viewed 5,172 times – ( +1 )
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

Localized version of CFormatter

Created 6 months ago by marcovtwoutHow-tos2 comments – viewed 1,882 times – ( +3 )
The default CFormatter (accessible through Yii::app()->format) is not locale aware, unfortunately. Until it is, here is a quick and easy way to localize it, by extending the default class.

Create custom button button with AJAX function in CGridView

Created 6 months ago by nkdHow-tos0 comments – viewed 9,545 times – ( +4 )
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Install, update and use Yii with WAMP server

Created 7 months ago by mrsHow-tos4 comments – viewed 8,655 times – ( +4 / -1 )
Here I am describing how you can install and update Yii in WAMP sever.

URL management for Websites with secure and nonsecure pages

Created 7 months ago by qiangHow-tos3 comments – viewed 6,399 times – ( +13 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Hyphenation of routes in URL management

Created 7 months ago by qiangHow-tos4 comments – viewed 6,289 times – ( +15 )
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

simple CSV export

Created 7 months ago by bluyellHow-tos3 comments – viewed 4,342 times – ( +1 )
tags: csv, excel, export