Wiki

Sorted by date (updated)X
Displaying 561-570 of 784 result(s).

How to setup yiic on WAMP (XP/Vista)

Updated 5 years ago by Yang HeTutorials3 comments – viewed 79,327 times – ( +3 / -1 ) – version 1.1
This page assumes that you have installed Wampserver on your MS Windows computer.

How to filter data using a dropdown list?

Updated 5 years ago by Yang HeTutorials0 comments – viewed 29,880 times – ( +8 / -1 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

How to log changes of ActiveRecords?

Updated 5 years ago by Yang HeTutorials7 comments – viewed 48,247 times – ( +41 / -3 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

How to automate timestamps in ActiveRecord models

Updated 5 years ago by Yang HeTutorials9 comments – viewed 149,203 times – ( +32 / -1 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

How to customize the error message of a validation rule

Updated 5 years ago by Yang HeTutorials4 comments – viewed 101,060 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:

Advanced CTabView using CClipWidget

Updated 5 years ago by Yang HeTutorials1 comment – viewed 12,809 times – ( +2 / -1 ) – 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 5 years ago by kiran sharmaTutorials28 comments – viewed 106,462 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.

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

Updated 5 years ago by intel352Tutorials10 comments – viewed 76,882 times – ( +28 / -1 ) – 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 5 years ago by pheadeauxHow-tos5 comments – viewed 15,090 times – ( +5 / -1 ) – 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 5 years ago by rix.rix.Tutorials0 comments – viewed 20,190 times – ( +8 / -1 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc