Wiki

Sorted by commentsX
Displaying 61-70 of 599 result(s).

CGridView: Update/create records in a CJuiDialog

Created 2 years ago by JobloTips11 comments – viewed 32,434 times – ( +13 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Understanding Scenarios

Created 2 years ago by Luke JurgsTutorials11 comments – viewed 64,938 times – ( +25 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Yii Security-extended guide

Created 2 years ago by bingjie2680Tips11 comments – viewed 13,398 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

Setting and maintaining the language in Application (i18n)

Created 5 years ago by olafureTutorials11 comments – viewed 68,099 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

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

Created about a year ago by kiran sharmaTips11 comments – viewed 72,913 times – ( +27 / -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)

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

Created 2 months ago by Kartik VTutorials11 comments – viewed 4,973 times – ( +6 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Understanding "Assets"

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

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos11 comments – viewed 105,054 times – ( +71 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials11 comments – viewed 19,963 times – ( +26 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Caching the config main.php

Created 2 years ago by dckurushinTutorials11 comments – viewed 10,754 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!