Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 1-10 of 229 result(s).

Searching and sorting by related model in CGridView

Created 2 years ago by redguyTutorials74 comments – viewed 121,889 times – ( +109 ) – version 1.1
Lets say we have two models and relation between them:

Yii for beginners

Created 2 years ago by rackyczTutorials13 comments – viewed 209,465 times – ( +95 ) – version 1.1
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.

Understanding Virtual Attributes and get/set methods

Created 3 years ago by Steve FriedlTutorials19 comments – viewed 87,942 times – ( +76 ) – version 1.1
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:

NetBeans IDE and Yii projects

Created 3 years ago by marcovtwoutTutorials28 comments – viewed 162,479 times – ( +75 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.

How to use a single form to collect data for two or more models?

Created 5 years ago by qiangTutorials30 comments – viewed 142,955 times – ( +111 / -1 ) – version 1.1
Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code:

By Example: CHtml

Created 4 years ago by jonahTutorials15 comments – viewed 510,030 times – ( +103 / -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.

CJuiDialog for create new model

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

Update content in AJAX with renderPartial

Created 4 years ago by BurzumTutorials15 comments – viewed 174,382 times – ( +58 ) – 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 71,724 times – ( +58 ) – 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.

How to work with flash messages

Created 5 years ago by pfthTutorials10 comments – viewed 157,500 times – ( +57 ) – version 1.1
Set your messages in a controller: