Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 11-20 of 228 result(s).

Understanding "Assets"

Created 3 years ago by Steve FriedlTutorials11 comments – viewed 109,698 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.

How to automate timestamps in ActiveRecord models

Created 5 years ago by dalipTutorials8 comments – viewed 98,536 times – ( +30 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Add information to Yii::app()->user by extending CWebUser

Created 4 years ago by atrandafirTutorials10 comments – viewed 93,801 times – ( +31 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Understanding Virtual Attributes and get/set methods

Created 3 years ago by Steve FriedlTutorials19 comments – viewed 86,955 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:

Behaviors & events

Created 4 years ago by pestaaTutorials9 comments – viewed 85,452 times – ( +50 ) – version 1.1
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

CJuiDialog and AjaxSubmitButton

Created 4 years ago by tydeas_drTutorials22 comments – viewed 84,257 times – ( +37 / -2 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

How to implement multiple page layouts in an application

Created 5 years ago by qiangTutorials2 comments – viewed 79,114 times – ( +24 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Ajax form submiting in Yii

Created about a year ago by sirin kTutorials9 comments – viewed 78,494 times – ( +11 / -4 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created about a year ago by Charles R. Portwood IITutorials7 comments – viewed 76,552 times – ( +8 / -7 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

CGridView, CListView and CActiveDataProvider

Created about a year ago by softarkTutorials21 comments – viewed 75,924 times – ( +45 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.