Wiki

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

Understanding "Safe" Validation Rules

Created 4 years ago by Steve FriedlFAQs11 comments – viewed 83,948 times – ( +93 / -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.

Uploading multiple images with CMultiFileUpload

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

Getting to Understand Hierarchical RBAC Scheme

Created 4 years ago by daemonsTutorials15 comments – viewed 79,036 times – ( +62 ) – 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 3 years ago by fsbHow-tos8 comments – viewed 78,398 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.

Multiple-database support in Yii

Created 4 years ago by Steve FriedlHow-tos15 comments – viewed 75,734 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

Understanding Autoloading, Helper Classes and Helper Functions

Created 4 years ago by Steve FriedlTutorials4 comments – viewed 75,358 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.

Simple RBAC

Created 2 years ago by hasanaviTutorials17 comments – viewed 71,697 times – ( +47 / -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.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created 2 years ago by Gerhard LiebenbergTutorials20 comments – viewed 71,556 times – ( +26 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Creating a CSS Driven Drop Down Menu using CMenu

Created 3 years ago by blindMoeHow-tos10 comments – viewed 71,494 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.

How to setup yiic on WAMP (XP/Vista)

Created 6 years ago by krillzipTutorials3 comments – viewed 70,866 times – ( +3 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.