Wiki

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

CJuiDialog for create new model

Created 4 years ago by zaccariaTutorials53 comments – viewed 87,156 times – ( +67 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

Uploading multiple images with CMultiFileUpload

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

Accessing data in a join table with the related models

Created 3 years ago by fsbHow-tos8 comments – viewed 84,060 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.

Getting to Understand Hierarchical RBAC Scheme

Created 4 years ago by daemonsTutorials15 comments – viewed 82,403 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.

Multiple-database support in Yii

Created 4 years ago by Steve FriedlHow-tos17 comments – viewed 81,513 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 80,034 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.

Setting and getting systemwide static parameters

Created 4 years ago by Steve FriedlHow-tos3 comments – viewed 76,676 times – ( +11 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

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

Created 3 years ago by Gerhard LiebenbergTutorials20 comments – viewed 76,246 times – ( +27 / -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.

Simple RBAC

Created 3 years ago by hasanaviTutorials17 comments – viewed 75,200 times – ( +48 / -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 set up Unicode

Created 6 years ago by MikeHow-tos10 comments – viewed 75,070 times – ( +19 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode