Articles in category "tutorials"X
Displaying 221-230 of 242 result(s).

How to create a breadcrumb widget

Created 6 years ago by knutTutorials4 comments – viewed 63,901 times – ( +13 ) – 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 6 years ago by qiangTutorials2 comments – viewed 54,245 times – ( +19 ) – 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 6 years ago by pfthTutorials12 comments – viewed 208,620 times – ( +59 ) – version 1.1
Set your messages in a controller:

How to generate Web feed for an application

Created 6 years ago by qiangTutorials6 comments – viewed 21,520 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.

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

Created 6 years ago by qiangTutorials33 comments – viewed 182,321 times – ( +118 / -1 ) – 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 6 years ago by qiangTutorials7 comments – viewed 47,821 times – ( +18 ) – 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 6 years ago by dalipTutorials0 comments – viewed 8,981 times – ( +1 ) – version 1.1
According to the manual;
tags: cache, memcache

How to hide index.php on nginx

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


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

Eclipse PDT - code-hints, references and other goodies

Created 6 years ago by mindehTutorials2 comments – viewed 27,962 times – ( +14 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE