Wiki

Sorted by ratingX
Displaying 21-30 of 483 result(s).

How to work with flash messages

Created 4 years ago by pfthTutorials9 comments – viewed 88,744 times – ( +49 )
Set your messages in a controller:

Use shortcut functions to reduce typing

Created 4 years ago by qiangTutorials8 comments – viewed 27,983 times – ( +48 )
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.

Understanding the view rendering flow

Created about a year ago by dckurushinFAQs10 comments – viewed 72,085 times – ( +69 / -1 )
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

YiiBoilerplate - Setup a professional project structure in seconds

Created 9 months ago by Antonio RamirezOthers49 comments – viewed 23,277 times – ( +42 )
YiiBoilerplate
tags: directory, config

How to generate Yii-like Documentation

Created 2 years ago by AsgarothHow-tos7 comments – viewed 15,807 times – ( +42 )
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Behaviors & events

Created 3 years ago by pestaaTutorials7 comments – viewed 51,204 times – ( +40 )
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.

Extending common classes to allow better customization

Created 2 years ago by Steve FriedlTips0 comments – viewed 14,482 times – ( +38 )
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

Creating a dependent dropdown

Created 4 years ago by dalipTutorials22 comments – viewed 144,095 times – ( +88 / -3 )
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.
tags: AJAX

CSS Naming Conventions

Created 2 years ago by qiangTutorials4 comments – viewed 21,513 times – ( +35 )
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

Creating a jQueryUI Sortable CGridView

Created about a year ago by blindMoeHow-tos14 comments – viewed 17,837 times – ( +35 )
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.