Wiki

Sorted by viewsX
Displaying 41-50 of 785 result(s).

How to implement multiple page layouts in an application

Created 7 years ago by qiangTutorials2 comments – viewed 102,768 times – ( +24 ) – 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

Multiple-database support in Yii

Created 6 years ago by Steve FriedlHow-tos18 comments – viewed 102,443 times – ( +29 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Setting and maintaining the language in Application (i18n)

Created 7 years ago by olafureTutorials12 comments – viewed 101,255 times – ( +23 ) – 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 6 years ago by tydeas_drTutorials22 comments – viewed 101,220 times – ( +37 / -2 ) – 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

Uploading multiple images with CMultiFileUpload

Created 5 years ago by rsinghHow-tos16 comments – viewed 100,434 times – ( +38 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created about a year ago by skwordenHow-tos12 comments – viewed 99,618 times – ( +27 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Setting and getting systemwide static parameters

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 99,077 times – ( +12 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Getting to Understand Hierarchical RBAC Scheme

Created 5 years ago by daemonsTutorials15 comments – viewed 96,247 times – ( +63 ) – 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.

How to customize the error message of a validation rule

Created 7 years ago by qiangTutorials4 comments – viewed 95,515 times – ( +18 / -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:

CJuiDialog to create new model

Created 5 years ago by zaccariaTutorials53 comments – viewed 95,442 times – ( +68 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.