Wiki

Displaying 421-430 of 467 result(s).

By Example: CHtml

Created 3 years ago by jonahTutorials7 comments – viewed 240,737 times – ( +80 )
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

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

Created 3 years ago by idle signTutorials1 comment – viewed 10,483 times – ( +4 )
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).

How to add ajax-loading indicators

Created 3 years ago by schmunkTutorials5 comments – viewed 24,359 times – ( +25 )
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

CSS, JS and image URL shortcut methods

Created 3 years ago by jonahTutorials2 comments – viewed 13,031 times – ( +2 / -1 )
Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.
tags: URL

Behaviors & events

Created 3 years ago by pestaaTutorials7 comments – viewed 48,299 times – ( +39 )
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

Adding login form to each page

Created 3 years ago by pestaaTutorials5 comments – viewed 17,899 times – ( +3 / -1 )
After adding proper form to the main layout, like:

How to make customizable Db Table prefixes using ActiveRecord

Created 3 years ago by killermonkTutorials0 comments – viewed 7,683 times
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

How to extend yiic shell commands

Created 3 years ago by qiangTutorials1 comment – viewed 13,221 times – ( +1 )
Note: this tutorial requires Yii 1.0.8 or later.
tags: yiic

Enabling Gzip

Created 3 years ago by pestaaTutorials5 comments – viewed 11,280 times – ( +5 / -1 )
Adding HTTP compression to your application could never have been easier!

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 3 years ago by mindehHow-tos4 comments – viewed 12,960 times – ( +32 )
Original source code and idea are from: PHP, PDO & Nested Transactions.