Wiki

Displaying 761-770 of 786 result(s).

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 106,023 times – ( +23 / -1 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Using CAutoComplete to display one value and submit another

Created 8 years ago by luoshibenTutorials5 comments – viewed 53,267 times – ( +8 / -4 ) – version 1.1
Note: CAutoComplete is deprecated since Yii 1.1.3. Consider using CJuiAutoComplete.

Creating a dependent dropdown

Created 8 years ago by dalipTutorials53 comments – viewed 335,156 times – ( +112 / -4 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

How to create a breadcrumb widget

Created 8 years ago by knutTutorials4 comments – viewed 72,579 times – ( +13 / -1 ) – version 1.1
Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

How to display static pages in Yii?

Created 8 years ago by qiangTutorials2 comments – viewed 63,816 times – ( +19 / -1 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

How to work with flash messages

Created 8 years ago by pfthTutorials12 comments – viewed 288,639 times – ( +60 / -1 ) – version 1.1
Set your messages in a controller:

How to generate Web feed for an application

Created 8 years ago by qiangTutorials6 comments – viewed 26,330 times – ( +4 / -1 ) – version 1.1
Web feed is a data format used for providing users with frequently updated content. In this article, we describe how to use Zend_Feed, an excellent component from Zend Framework to generate Web feed for an Yii application. This article can also serve as a general guide on how to use other components in Zend Framework.

How to use a single form to collect data for two or more models?

Created 8 years ago by qiangTutorials33 comments – viewed 219,800 times – ( +118 / -3 ) – version 1.1
Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code:

How to customize Yii core messages?

Created 8 years ago by qiangTutorials7 comments – viewed 54,146 times – ( +18 / -1 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

How to make use of a fragment cache

Created 8 years ago by dalipTutorials0 comments – viewed 11,178 times – ( +1 / -1 ) – version 1.1
According to the manual http://jp.php.net/manual/en/memcache.installation.php;
tags: cache, memcache