Articles in category "tutorials", sorted by date (updated)X
Displaying 171-180 of 255 result(s).

How to automate timestamps in ActiveRecord models

Updated 5 years ago by Yang HeTutorials9 comments – viewed 152,868 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 106,438 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 13,288 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 sharmaTutorials30 comments – viewed 109,271 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 78,997 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.

MVC primer and 5 minute form walkthrough

Updated 5 years ago by rix.rix.Tutorials0 comments – viewed 21,206 times – ( +8 / -1 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Simple access control

Updated 5 years ago by szfjozsefTutorials4 comments – viewed 38,896 times – ( +4 / -9 ) – 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.

Deploy yii on pagoda box

Updated 5 years ago by francis jaTutorials0 comments – viewed 8,759 times – ( +4 / -1 ) – version 1.1
pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command
tags: pagodabox, pagoda

Display an AJAX tree from your DB using CTreeView

Updated 5 years ago by Fran├žois GannazTutorials10 comments – viewed 58,964 times – ( +21 / -1 ) – version 1.1
This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).
tags: AJAX, CTreeView

How to log context information to logger (session id, user, ...)

Updated 5 years ago by ajsharmaTutorials0 comments – viewed 16,255 times – ( +2 / -1 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging