Wiki

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

How to create a breadcrumb widget

Created 5 years ago by knutTutorials4 comments – viewed 58,912 times – ( +12 ) – version 1.1
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 5 years ago by qiangTutorials3 comments – viewed 34,529 times – ( +12 ) – version 1.1
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.

i18n for your model in just 1 line

Created 4 years ago by mintaoTutorials0 comments – viewed 11,603 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

Using your own forked version of extensions with composer

Created 7 months ago by Kartik VTutorials1 comment – viewed 1,863 times – ( +32 / -4 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

How to customize the error message of a validation rule

Created 5 years ago by qiangTutorials4 comments – viewed 63,604 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 4 years ago by Juan CalvoTutorials4 comments – viewed 38,619 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 3 years ago by jonahTutorials5 comments – viewed 21,991 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 thyseusTutorials2 comments – viewed 17,864 times – ( +11 ) – version 1.1
In order to nicely display flash Messages, create view like this called views/site/dialog.php :

How to display static pages in Yii with database content?

Created 2 years ago by yasenTutorials5 comments – viewed 20,480 times – ( +11 ) – version 1.1
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

Handling tabular data loading and validation in Yii 2

Created 7 months ago by Kartik VTutorials0 comments – viewed 5,184 times – ( +31 / -4 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.