Wiki

Articles in category "how-tos"X
Displaying 51-60 of 189 result(s).

pass variables or content block from view file to layout file

Created 7 months ago by yiqing95How-tos0 comments – viewed 5,618 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 7 months ago by marcovtwoutHow-tos2 comments – viewed 1,989 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 7 months ago by nkdHow-tos0 comments – viewed 11,028 times – ( +5 )
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 8 months ago by mrsHow-tos5 comments – viewed 10,293 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 8 months ago by qiangHow-tos5 comments – viewed 7,285 times – ( +15 )
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 8 months ago by qiangHow-tos4 comments – viewed 6,906 times – ( +16 )
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

simple CSV export

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

Serial Numbers (item counts) in GridView

Created 8 months ago by PeRoChAkHow-tos2 comments – viewed 3,554 times – ( +1 )
Sometime we need to display numbers of items per page with their counting as a serial number.

A simple go back button widget

Created 8 months ago by CTalaHow-tos5 comments – viewed 7,349 times – ( +4 / -2 )
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Using phpseclib with Yii

Created 8 months ago by nkdHow-tos6 comments – viewed 3,598 times – ( +2 )
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security