Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 21-30 of 174 result(s).

How to automate timestamps in ActiveRecord models

Created 4 years ago by dalipTutorials7 comments – viewed 60,096 times – ( +25 )
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

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

Created 4 years ago by qiangTutorials10 comments – viewed 41,971 times – ( +25 )
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.

How to add ajax-loading indicators

Created 3 years ago by schmunkTutorials5 comments – viewed 25,487 times – ( +25 )
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

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

Created 3 years ago by andy_sTutorials20 comments – viewed 45,117 times – ( +25 )
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 4 years ago by qiangTutorials2 comments – viewed 58,244 times – ( +23 )
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

Understanding Autoloading, Helper Classes and Helper Functions

Created 2 years ago by Steve FriedlTutorials4 comments – viewed 38,742 times – ( +23 )
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

Understanding Scenarios

Created about a year ago by Luke JurgsTutorials9 comments – viewed 37,601 times – ( +22 )
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Simple RBAC

Created about a year ago by hasanaviTutorials11 comments – viewed 34,311 times – ( +33 / -1 )
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created about a year ago by Gerhard LiebenbergTutorials17 comments – viewed 29,307 times – ( +21 )
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Yii for beginners 2

Created 3 months ago by rackyczTutorials2 comments – viewed 11,107 times – ( +21 )
Hi :-) Is that you again? Welcome !! :-)
tags: Created