Wiki

Articles in category "tutorials"X
Displaying 151-160 of 172 result(s).

How to create a breadcrumb widget

Created 4 years ago by knutTutorials3 comments – viewed 30,611 times – ( +9 )
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 4 years ago by qiangTutorials2 comments – viewed 26,033 times – ( +14 )
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 4 years ago by pfthTutorials9 comments – viewed 83,093 times – ( +48 )
Set your messages in a controller:

How to generate Web feed for an application

Created 4 years ago by qiangTutorials6 comments – viewed 12,586 times – ( +4 )
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 4 years ago by qiangTutorials9 comments – viewed 77,534 times – ( +86 )
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 4 years ago by qiangTutorials6 comments – viewed 27,530 times – ( +13 )
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 4 years ago by dalipTutorials0 comments – viewed 5,401 times – ( +1 )
According to the manual http://jp.php.net/manual/en/memcache.installation.php;
tags: cache, memcache

How to hide index.php on nginx

Created 4 years ago by milesTutorials3 comments – viewed 20,528 times – ( +4 )
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

AutoTimestampBehavior

Created 4 years ago by jonahTutorials1 comment – viewed 7,448 times – ( +2 / -2 )
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Eclipse PDT - code-hints, references and other goodies

Created 4 years ago by mindehTutorials3 comments – viewed 20,822 times – ( +13 )
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE