Wiki

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

Uploading multiple images with CMultiFileUpload

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

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs11 comments – viewed 74,651 times – ( +90 / -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.

Getting to Understand Hierarchical RBAC Scheme

Created 3 years ago by daemonsTutorials19 comments – viewed 73,909 times – ( +59 ) – 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.

Accessing data in a join table with the related models

Created 2 years ago by fsbHow-tos8 comments – viewed 70,860 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.

Understanding Autoloading, Helper Classes and Helper Functions

Created 3 years ago by Steve FriedlTutorials4 comments – viewed 68,311 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 68,174 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

How to setup yiic on WAMP (XP/Vista)

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

Creating a CSS Driven Drop Down Menu using CMenu

Created 3 years ago by blindMoeHow-tos9 comments – viewed 66,153 times – ( +22 / -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 66,064 times – ( +45 / -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.

How to learn Yii?!

Created 2 years ago by yJeroenTutorials8 comments – viewed 64,388 times – ( +24 ) – version all
Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.