Wiki

Sorted by date (updated)X
Displaying 351-360 of 601 result(s).

Encapsulate db and module configurations

Updated about a year ago by Yang HeTutorials3 comments – viewed 8,675 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

How to use default layout for error pages instead of errorXXX views

Updated about a year ago by Yang HeTutorials1 comment – viewed 15,766 times – ( +4 ) – version 1.1
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

How to add ajax-loading indicators

Updated about a year ago by Yang HeTutorials5 comments – viewed 37,460 times – ( +26 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Adding login form to each page

Updated about a year ago by Yang HeTutorials5 comments – viewed 29,861 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like:

Enabling Gzip

Updated about a year ago by Yang HeTutorials5 comments – viewed 15,821 times – ( +5 / -1 ) – version 1.1
Adding HTTP compression to your application could never have been easier!

Use shortcut functions to reduce typing

Updated about a year ago by Yang HeTutorials8 comments – viewed 36,667 times – ( +53 ) – version 1.1
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.

How to create/save more Model inputs and make them repeatable with jQuery

Updated about a year ago by Yang HeTutorials3 comments – viewed 31,213 times – ( +12 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

Setting and maintaining the language in Application (i18n)

Updated about a year ago by Yang HeTutorials11 comments – viewed 68,386 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

How to create a breadcrumb widget

Updated about a year ago by Yang HeTutorials4 comments – viewed 50,052 times – ( +12 ) – 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 generate Web feed for an application

Updated about a year ago by Yang HeTutorials6 comments – viewed 17,454 times – ( +4 ) – 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.