Wiki

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

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 50,497 times – ( +15 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

RBAC Super Simple with Admin and User

Created 2 years ago by evercodeTutorials10 comments – viewed 49,952 times – ( +16 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

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

Created 3 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 49,947 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.

Yii Related Sites

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

Using CJuiDatePicker for CGridView filter

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

How to use ldap in UserIdentity for authentication

Created 6 years ago by BeerSercTutorials15 comments – viewed 49,397 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.

Use shortcut functions to reduce typing

Created 7 years ago by qiangTutorials8 comments – viewed 48,991 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.

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

Created 5 years ago by Steve FriedlHow-tos8 comments – viewed 48,688 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

Upload image and content using AJAX and Store it in different table

Created 2 years ago by SelvakumarHow-tos1 comment – viewed 48,398 times – ( +3 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

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

Created 6 years ago by thyseusTutorials9 comments – viewed 47,974 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