Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 61-70 of 172 result(s).

How to customize the error message of a validation rule

Created 4 years ago by qiangTutorials3 comments – viewed 30,042 times – ( +12 )
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

i18n for your model in just 1 line

Created 3 years ago by mintaoTutorials0 comments – viewed 8,531 times – ( +12 )
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

How to use ldap in UserIdentity for authentication

Created 3 years ago by BeerSercTutorials10 comments – viewed 20,273 times – ( +11 )
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 8 months ago by yJeroenTutorials8 comments – viewed 16,538 times – ( +11 )
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Introducción al control de acceso basado en roles (RBAC)

Created 2 years ago by Juan CalvoTutorials4 comments – viewed 21,067 times – ( +16 / -1 )
Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

How to create a breadcrumb widget

Created 4 years ago by knutTutorials4 comments – viewed 30,918 times – ( +10 )
Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

How to create/save more Model inputs and make them repeatable with jQuery

Created 4 years ago by qiangTutorials2 comments – viewed 23,346 times – ( +10 )
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

Front-end developer's guide

Created about a year ago by jonahTutorials5 comments – viewed 15,468 times – ( +10 )
This wiki is a work in progress.

Using CJuiDialog to display flash Messages in Dialogues

Created 2 years ago by thyseusTutorials1 comment – viewed 11,358 times – ( +10 )
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

Logout CSRF Protection

Created 2 years ago by Rodrigo CoelhoTutorials1 comment – viewed 9,312 times – ( +10 )
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.