Wiki

Sorted by ratingX
Displaying 51-60 of 741 result(s).

Create your own Validation Rule

Created 4 years ago by nickcvHow-tos13 comments – viewed 143,562 times – ( +75 / -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.

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created 3 years ago by c@cbaTutorials36 comments – viewed 46,776 times – ( +32 ) – version 1.1
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 2 years ago by softarkTutorials13 comments – viewed 32,351 times – ( +32 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Creating a jQueryUI Sortable CGridView

Created 3 years ago by blindMoeHow-tos22 comments – viewed 33,543 times – ( +47 / -1 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Searching and Sorting by Count of Related Items in CGridView

Created 3 years ago by softarkHow-tos13 comments – viewed 34,070 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Single sign on across multiple subdomains

Created 4 years ago by ianarĂ©How-tos9 comments – viewed 33,307 times – ( +31 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

How to automate timestamps in ActiveRecord models

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

Understanding Scenarios

Created 3 years ago by Luke JurgsTutorials11 comments – viewed 90,290 times – ( +30 ) – 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.

Creating Yii applications with composer

Created 2 years ago by schmunkTutorials2 comments – viewed 50,372 times – ( +30 ) – version 1.1
Creating Yii applications with composer

Yii for beginners 2

Created 2 years ago by rackyczTutorials2 comments – viewed 41,773 times – ( +30 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)