Wiki

Sorted by viewsX
Displaying 51-60 of 785 result(s).

Getting to Understand Hierarchical RBAC Scheme

Created 6 years ago by daemonsTutorials15 comments – viewed 100,489 times – ( +63 / -1 ) – 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 6 years ago by Steve FriedlTutorials4 comments – viewed 100,484 times – ( +29 / -1 ) – 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.

Date Picker by examples

Created 3 years ago by InterboyHow-tos6 comments – viewed 99,867 times – ( +10 / -3 ) – version 1.1
CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

CJuiDialog to create new model

Created 6 years ago by zaccariaTutorials54 comments – viewed 97,893 times – ( +69 / -1 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

Use crypt() for password storage

Created 4 years ago by fsbTutorials16 comments – viewed 97,337 times – ( +24 / -1 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

How to set up Unicode

Created 8 years ago by MikeHow-tos10 comments – viewed 96,423 times – ( +19 / -1 ) – 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

Creating and updating model and its related models in one form, inc. image

Created 5 years ago by BoazHow-tos11 comments – viewed 95,193 times – ( +6 / -4 ) – version 1.1
We start slowly and simple...

Yii 2 list of path aliases available with default basic and advanced app.

Created 3 years ago by Kartik VTips2 comments – viewed 95,189 times – ( +53 / -6 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

Creating a parameterized LIKE query

Created 6 years ago by Steve FriedlFAQs6 comments – viewed 93,395 times – ( +25 / -1 ) – version 1.1
It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column

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

Created 5 years ago by Gerhard LiebenbergTutorials20 comments – viewed 93,247 times – ( +28 / -2 ) – 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.