Wiki

Articles in category "how-tos"X
Displaying 171-180 of 309 result(s).

pass variables or content block from view file to layout file

Created about a year ago by yiqing95How-tos0 comments – viewed 13,267 times – ( +2 ) – version 1.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 about a year ago by marcovtwoutHow-tos2 comments – viewed 3,546 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Create custom button button with AJAX function in CGridView

Created about a year ago by nkdHow-tos1 comment – viewed 33,709 times – ( +14 ) – version 1.1
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 about a year ago by mrsHow-tos5 comments – viewed 27,911 times – ( +5 / -1 ) – version 1.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 about a year ago by qiangHow-tos11 comments – viewed 19,291 times – ( +26 ) – version 1.1
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 about a year ago by qiangHow-tos6 comments – viewed 13,885 times – ( +18 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

simple CSV export

Created about a year ago by bluyellHow-tos5 comments – viewed 13,890 times – ( +4 / -1 ) – version 1.1
tags: csv, excel, export

Serial Numbers (item counts) in GridView

Created about a year ago by PeRoChAkHow-tos3 comments – viewed 6,637 times – ( +1 ) – version 1.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 about a year ago by CTalaHow-tos7 comments – viewed 14,463 times – ( +8 / -3 ) – version 1.1
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 about a year ago by nkdHow-tos8 comments – viewed 6,203 times – ( +2 ) – version 1.1
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