Wiki

Sorted by viewsX
Displaying 21-30 of 598 result(s).

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 99,457 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

How to automate timestamps in ActiveRecord models

Created 5 years ago by dalipTutorials7 comments – viewed 88,887 times – ( +28 ) – 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 83,784 times – ( +30 ) – 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.

Url: hide index.php

Created 2 years ago by HermansHow-tos14 comments – viewed 82,045 times – ( +25 / -1 ) – version 1.1
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

Javascript and AJAX with Yii

Created about a year ago by Fran├žois GannazHow-tos2 comments – viewed 80,054 times – ( +39 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

CJuiDialog and AjaxSubmitButton

Created 3 years ago by tydeas_drTutorials21 comments – viewed 79,131 times – ( +36 / -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

Understanding Virtual Attributes and get/set methods

Created 3 years ago by Steve FriedlTutorials19 comments – viewed 77,216 times – ( +75 ) – 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 76,626 times – ( +49 ) – 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.

How to implement multiple page layouts in an application

Created 5 years ago by qiangTutorials2 comments – viewed 74,168 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

Cookie management in Yii

Created 3 years ago by TrejderHow-tos5 comments – viewed 73,314 times – ( +41 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.