Wiki

Displaying 671-680 of 716 result(s).

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

Created 5 years ago by idle signTutorials1 comment – viewed 18,480 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

Created 5 years ago by schmunkTutorials5 comments – viewed 43,140 times – ( +27 ) – 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

CSS, JS and image URL shortcut methods

Created 5 years ago by jonahTutorials2 comments – viewed 20,785 times – ( +2 / -1 ) – version 1.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 5 years ago by pestaaTutorials10 comments – viewed 92,646 times – ( +50 ) – version 1.1
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 5 years ago by pestaaTutorials5 comments – viewed 32,130 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like:

How to make customizable Db Table prefixes using ActiveRecord

Created 5 years ago by killermonkTutorials0 comments – viewed 11,443 times – version 1.1
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 5 years ago by qiangTutorials1 comment – viewed 19,861 times – ( +2 ) – version 1.1
Note: this tutorial requires Yii 1.0.8 or later.
tags: yiic

Enabling Gzip

Created 5 years ago by pestaaTutorials5 comments – viewed 17,975 times – ( +6 / -1 ) – version 1.1
Adding HTTP compression to your application could never have been easier!

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

Created 5 years ago by mindehHow-tos6 comments – viewed 26,214 times – ( +44 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

Integrating with other frameworks

Created 5 years ago by KJediTutorials4 comments – viewed 16,061 times – ( +5 / -1 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps: