Wiki

Sorted by viewsX
Displaying 41-50 of 684 result(s).

Uploading multiple images with CMultiFileUpload

Created 3 years ago by rsinghHow-tos16 comments – viewed 72,333 times – ( +37 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

Getting to Understand Hierarchical RBAC Scheme

Created 3 years ago by daemonsTutorials17 comments – viewed 70,502 times – ( +57 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs10 comments – viewed 69,604 times – ( +89 / -1 ) – version 1.1
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

Accessing data in a join table with the related models

Created 2 years ago by fsbHow-tos8 comments – viewed 66,131 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

How to setup yiic on WAMP (XP/Vista)

Created 5 years ago by krillzipTutorials3 comments – viewed 66,005 times – ( +2 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

Understanding Autoloading, Helper Classes and Helper Functions

Created 3 years ago by Steve FriedlTutorials4 comments – viewed 64,049 times – ( +29 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

Multiple-database support in Yii

Created 3 years ago by Steve FriedlHow-tos14 comments – viewed 63,709 times – ( +28 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Creating a CSS Driven Drop Down Menu using CMenu

Created 3 years ago by blindMoeHow-tos9 comments – viewed 62,820 times – ( +21 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Simple RBAC

Created 2 years ago by hasanaviTutorials16 comments – viewed 61,822 times – ( +44 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 4 years ago by thyseusTutorials4 comments – viewed 61,356 times – ( +12 / -4 ) – version 1.1
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.