Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 21-30 of 254 result(s).

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 7 years ago by andy_sTutorials28 comments – viewed 107,216 times – ( +36 / -1 ) – version 1.1
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.

How to implement multiple page layouts in an application

Created 8 years ago by qiangTutorials2 comments – viewed 106,610 times – ( +24 / -1 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout

Building a REST API in Yii2.0

Created 3 years ago by sirin kTutorials6 comments – viewed 105,929 times – ( +9 / -1 ) – version 2.0
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
tags: yii2.0, REST API

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 104,949 times – ( +23 / -1 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

CJuiDialog and AjaxSubmitButton

Created 7 years ago by tydeas_drTutorials22 comments – viewed 103,493 times – ( +37 / -3 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

How to customize the error message of a validation rule

Created 8 years ago by qiangTutorials4 comments – viewed 102,845 times – ( +18 / -2 ) – 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:

Getting to Understand Hierarchical RBAC Scheme

Created 6 years ago by daemonsTutorials15 comments – viewed 100,489 times – ( +63 / -1 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Understanding Autoloading, Helper Classes and Helper Functions

Created 6 years ago by Steve FriedlTutorials4 comments – viewed 100,484 times – ( +29 / -1 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

CJuiDialog to create new model

Created 6 years ago by zaccariaTutorials54 comments – viewed 97,893 times – ( +69 / -1 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

Use crypt() for password storage

Created 4 years ago by fsbTutorials16 comments – viewed 97,334 times – ( +24 / -1 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.