Wiki

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

NetBeans IDE and Yii projects

Created 2 years ago by marcovtwoutTutorials28 comments – viewed 121,433 times – ( +69 )
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

Understanding Virtual Attributes and get/set methods

Created 2 years ago by Steve FriedlTutorials16 comments – viewed 46,288 times – ( +64 )
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Create your own Validation Rule

Created 2 years ago by nickcvHow-tos8 comments – viewed 62,223 times – ( +58 )
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Relations: BELONGS_TO versus HAS_ONE

Created 2 years ago by Steve FriedlFAQs6 comments – viewed 38,340 times – ( +58 )
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.

How-To: Create a REST API

Created 2 years ago by jwernerHow-tos38 comments – viewed 104,334 times – ( +86 / -1 )
This article will explain how to create a REST API with the Yii framework.

CGridView: Render customized/complex datacolumns

Created about a year ago by JobloTips7 comments – viewed 57,453 times – ( +55 )
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

CJuiDialog for create new model

Created 2 years ago by zaccariaTutorials37 comments – viewed 50,064 times – ( +55 )
In this tutorial we will learn how to realize a create interface using a dialog.

Understanding "Assets"

Created 2 years ago by Steve FriedlTutorials11 comments – viewed 63,826 times – ( +52 )
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.

Getting to Understand Hierarchical RBAC Scheme

Created 2 years ago by daemonsTutorials10 comments – viewed 44,046 times – ( +50 )
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.

Update content in AJAX with renderPartial

Created 3 years ago by BurzumTutorials8 comments – viewed 86,640 times – ( +49 )
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX