Wiki

Sorted by viewsX
Displaying 141-150 of 774 result(s).

Yii Related Sites

Created 5 years ago by jacmoeOthers4 comments – viewed 48,675 times – ( +34 ) – version 1.1
This is a list of blogs, off-site tutorials and other resources about Yii.

Use shortcut functions to reduce typing

Created 7 years ago by qiangTutorials8 comments – viewed 47,973 times – ( +58 ) – version 1.1
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.

How to use ldap in UserIdentity for authentication

Created 6 years ago by BeerSercTutorials15 comments – viewed 47,824 times – ( +14 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Using CJuiDatePicker for CGridView filter

Created 4 years ago by softarkHow-tos21 comments – viewed 47,690 times – ( +27 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Moving project code outside of webroot (plus multiple project support)

Created 5 years ago by Steve FriedlHow-tos8 comments – viewed 47,638 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 2 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 47,458 times – ( +6 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 6 years ago by thyseusTutorials9 comments – viewed 47,297 times – ( +15 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Ajax update

Created 5 years ago by zaccariaTips2 comments – viewed 46,570 times – ( +21 / -2 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Reliable Alternative For Yii::app()->request->isAjaxRequest AND Adding Data To Ajax Form With JS

Created 4 years ago by ibo_sHow-tos2 comments – viewed 46,316 times – ( +15 / -1 ) – version 1.1
In this How-To I'll show you:

CGridView: Update/create records in a CJuiDialog

Created 4 years ago by JobloTips12 comments – viewed 46,117 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.