Wiki

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

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 114,250 times – ( +73 ) – 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 dalipTutorials8 comments – viewed 103,930 times – ( +30 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Url: hide index.php

Created 3 years ago by HermansHow-tos16 comments – viewed 100,323 times – ( +27 / -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.

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

Created 4 years ago by atrandafirTutorials11 comments – viewed 98,516 times – ( +33 ) – 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.

How to upload image(photo), and path entry in database with update functionality

Created 2 years ago by kiran sharmaTips16 comments – viewed 97,358 times – ( +35 / -3 ) – version 1.1
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos2 comments – viewed 95,501 times – ( +40 ) – 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

Understanding Virtual Attributes and get/set methods

Created 3 years ago by Steve FriedlTutorials19 comments – viewed 92,218 times – ( +77 / -1 ) – 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 5 years ago by pestaaTutorials10 comments – viewed 89,986 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.

Cookie management in Yii

Created 3 years ago by TrejderHow-tos5 comments – viewed 88,872 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.

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

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