Wiki

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

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

Created 5 years ago by kiran sharmaTips22 comments – viewed 175,695 times – ( +37 / -4 ) – 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)

Understanding "Assets"

Created 6 years ago by Steve FriedlTutorials12 comments – viewed 167,439 times – ( +57 / -1 ) – 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.

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 3 years ago by Kartik VTutorials25 comments – viewed 161,445 times – ( +57 / -5 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Displaying, Sorting and Filtering Model Relations on a GridView

Created 3 years ago by Antonio RamirezHow-tos15 comments – viewed 161,108 times – ( +46 / -1 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

CGridView: Render customized/complex datacolumns

Created 5 years ago by JobloTips13 comments – viewed 153,383 times – ( +74 / -1 ) – 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 8 years ago by dalipTutorials9 comments – viewed 151,456 times – ( +32 / -1 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Understanding Virtual Attributes and get/set methods

Created 6 years ago by Steve FriedlTutorials20 comments – viewed 150,351 times – ( +80 / -2 ) – 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:

Cookie management in Yii

Created 6 years ago by TrejderHow-tos5 comments – viewed 144,793 times – ( +43 / -2 ) – 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.

Javascript and AJAX with Yii

Created 5 years ago by François GannazHow-tos3 comments – viewed 142,969 times – ( +42 / -1 ) – 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

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 2 years ago by skwordenHow-tos18 comments – viewed 141,065 times – ( +28 / -1 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.