Wiki

Sorted by date (updated)X
Displaying 551-560 of 771 result(s).

How to customize the error message of a validation rule

Updated 4 years ago by Yang HeTutorials4 comments – viewed 87,682 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:

Advanced CTabView using CClipWidget

Updated 4 years ago by Yang HeTutorials1 comment – viewed 11,993 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

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

Updated 4 years ago by kiran sharmaTutorials27 comments – viewed 100,535 times – ( +35 ) – 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.

Organize directories for applications with front-end and back-end

Updated 4 years ago by intel352Tutorials10 comments – viewed 72,655 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Using SQLite and CDbMessageSource as a module

Updated 4 years ago by pheadeauxHow-tos5 comments – viewed 13,756 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

MVC primer and 5 minute form walkthrough

Updated 4 years ago by rix.rix.Tutorials0 comments – viewed 18,543 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

How to: use github for download yii, create new app, and store our modules or extensions.

Updated 4 years ago by Maurizio Domba CerinHow-tos1 comment – viewed 12,246 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

How to hide `index` action from URL

Updated 4 years ago by rootbearHow-tos2 comments – viewed 15,014 times – ( +3 / -2 ) – version 1.1
Here is my experiment inspired by my own question and others from the forum.
tags: index

Simple access control

Updated 4 years ago by szfjozsefTutorials4 comments – viewed 35,889 times – ( +4 / -8 ) – version 1.1
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 4 years ago by xrxHow-tos17 comments – viewed 38,575 times – ( +24 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.