Wiki

Displaying 361-370 of 750 result(s).

pass variables or content block from view file to layout file

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

Create custom button button with AJAX function in CGridView

Created 2 years ago by nkdHow-tos1 comment – viewed 41,271 times – ( +16 ) – 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.

Ember.js with Yii REST backend,demo application

Created 2 years ago by drumaddictOthers4 comments – viewed 25,652 times – ( +10 / -1 ) – version 1.1
Ember with Yii REST backend,demo application.

Install, update and use Yii with WAMP server

Created 2 years ago by mrsHow-tos5 comments – viewed 34,325 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 2 years ago by qiangHow-tos12 comments – viewed 24,674 times – ( +27 ) – 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

Setting static modules' properties in config

Created 2 years ago by Alexander PalamarchukTips0 comments – viewed 6,212 times – ( +2 / -2 ) – version 1.1
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 2 years ago by Alexander PalamarchukTips1 comment – viewed 5,682 times – ( +2 / -1 ) – version 1.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

Hyphenation of routes in URL management

Created 2 years ago by qiangHow-tos6 comments – viewed 17,228 times – ( +19 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

How to display static pages in Yii with database content?

Created 2 years ago by yasenTutorials6 comments – viewed 22,635 times – ( +11 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take: