Wiki

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

Multiple-database support in Yii

Created 6 years ago by Steve FriedlHow-tos18 comments – viewed 106,347 times – ( +29 / -1 ) – 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

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

Created 7 years ago by andy_sTutorials28 comments – viewed 106,060 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 105,300 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

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 103,721 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

Building a REST API in Yii2.0

Created 2 years ago by sirin kTutorials6 comments – viewed 103,028 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 getting systemwide static parameters

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 102,874 times – ( +12 / -1 ) – 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

Uploading multiple images with CMultiFileUpload

Created 6 years ago by rsinghHow-tos16 comments – viewed 102,841 times – ( +38 / -1 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

CJuiDialog and AjaxSubmitButton

Created 7 years ago by tydeas_drTutorials22 comments – viewed 102,676 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 100,255 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:

How to use PHPExcel external library with Yii

Created 6 years ago by Antonio RamirezHow-tos14 comments – viewed 99,204 times – ( +30 / -2 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?