Wiki

Articles in category "how-tos"X
Displaying 211-220 of 353 result(s).

Image resize on the fly

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

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

Created 3 years ago by skwordenHow-tos4 comments – viewed 18,052 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.

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Created 3 years ago by robregonmHow-tos0 comments – viewed 8,282 times – ( +2 ) – version 1.1
[EN] [ES]

pass variables or content block from view file to layout file

Created 3 years ago by yiqing95How-tos0 comments – viewed 19,349 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 3 years ago by marcovtwoutHow-tos2 comments – viewed 4,970 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Create custom button button with AJAX function in CGridView

Created 3 years ago by nkdHow-tos2 comments – viewed 50,461 times – ( +19 ) – 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 3 years ago by mrsHow-tos5 comments – viewed 42,903 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 3 years ago by qiangHow-tos12 comments – viewed 32,113 times – ( +29 ) – 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 3 years ago by qiangHow-tos6 comments – viewed 22,172 times – ( +19 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL