The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
This is a central location to collect links to "Getting Started" documentation beyond the blog demo and Creating First Yii Application. Please help the community by adding general, introductory links and descriptions to this page.
The easiest way to update content in AJAX is to use the renderPartial method.
"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.
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).
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.
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.
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.
After adding proper form to the main layout, like:
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
While yiic shell
tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.
Adding HTTP compression to your application could never have been easier!
Original source code and idea are from: PHP, PDO & Nested Transactions.
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:
This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.
Here is a quick tutorial for connecting Yii with Twitter using the Pogostick Yii Extensions Library.
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing direc...
Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...