Wiki

Displaying 91-100 of 483 result(s).

pass variables or content block from view file to layout file

Created 7 months ago by yiqing95How-tos0 comments – viewed 5,614 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,988 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,016 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.

Ember.js with Yii REST backend,demo application

Created 7 months ago by drumaddictOthers4 comments – viewed 13,635 times – ( +9 / -1 )
Ember with Yii REST backend,demo application.

Install, update and use Yii with WAMP server

Created 8 months ago by mrsHow-tos5 comments – viewed 10,281 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,277 times – ( +14 )
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Setting static modules' properties in config

Created 8 months ago by Alexander PalamarchukTips0 comments – viewed 2,923 times – ( +2 / -2 )
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

Making friends' configs, DB credentials and paths with version control

Created 8 months ago by Alexander PalamarchukTips1 comment – viewed 2,867 times – ( +2 / -1 )
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config