Wiki

Sorted by ratingX
Displaying 11-20 of 599 result(s).

How-To: Create a REST API

Created 3 years ago by jwernerHow-tos52 comments – viewed 184,392 times – ( +103 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 99,585 times – ( +69 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

By Example: CHtml

Created 4 years ago by jonahTutorials13 comments – viewed 434,752 times – ( +98 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

Relations: BELONGS_TO versus HAS_ONE

Created 2 years ago by Steve FriedlFAQs9 comments – viewed 66,432 times – ( +65 ) – version 1.1
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

CJuiDialog for create new model

Created 3 years ago by zaccariaTutorials44 comments – viewed 70,027 times – ( +61 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

How to work with flash messages

Created 5 years ago by pfthTutorials9 comments – viewed 139,638 times – ( +57 ) – version 1.1
Set your messages in a controller:

Update content in AJAX with renderPartial

Created 4 years ago by BurzumTutorials15 comments – viewed 151,027 times – ( +57 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

Getting to Understand Hierarchical RBAC Scheme

Created 3 years ago by daemonsTutorials17 comments – viewed 66,053 times – ( +57 ) – 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 "Assets"

Created 3 years ago by Steve FriedlTutorials11 comments – viewed 100,290 times – ( +57 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs10 comments – viewed 63,573 times – ( +83 / -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.