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

Uploading multiple images with CMultiFileUpload

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

CJuiDialog for create new model

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

Accessing data in a join table with the related models

Created 3 years ago by fsbHow-tos8 comments – viewed 89,255 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-tos18 comments – viewed 88,224 times – ( +29 ) – 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

Getting to Understand Hierarchical RBAC Scheme

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

Understanding Autoloading, Helper Classes and Helper Functions

Created 4 years ago by Steve FriedlTutorials4 comments – viewed 84,184 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 83,370 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

How to use PHPExcel external library with Yii

Created 5 years ago by Antonio RamirezHow-tos14 comments – viewed 79,907 times – ( +29 / -1 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

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 79,829 times – ( +28 / -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.

How to set up Unicode

Created 6 years ago by MikeHow-tos10 comments – viewed 79,552 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