Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 71-80 of 228 result(s).

How to use ldap in UserIdentity for authentication

Created 4 years ago by BeerSercTutorials15 comments – viewed 35,007 times – ( +12 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

i18n for your model in just 1 line

Created 4 years ago by mintaoTutorials0 comments – viewed 11,109 times – ( +12 ) – version 1.1
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 customize the error message of a validation rule

Created 5 years ago by qiangTutorials4 comments – viewed 56,704 times – ( +17 / -1 ) – version 1.1
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:

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

Created 3 years ago by Juan CalvoTutorials4 comments – viewed 35,589 times – ( +17 / -1 ) – version 1.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).

Front-end developer's guide

Created 2 years ago by jonahTutorials5 comments – viewed 21,029 times – ( +11 ) – version 1.1
This wiki is a work in progress.

Using CJuiDialog to display flash Messages in Dialogues

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

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

Created 6 months ago by Kartik VTutorials18 comments – viewed 11,683 times – ( +29 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Ordering Models by Weight with CJuiSortable

Created 4 years ago by Matt KelliherTutorials2 comments – viewed 10,085 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

How To Customize CMenu Output

Created 3 years ago by AngeloTutorials7 comments – viewed 49,669 times – ( +10 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Logout CSRF Protection

Created 3 years ago by Rodrigo CoelhoTutorials1 comment – viewed 13,170 times – ( +10 ) – version 1.1
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.