Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 121-130 of 172 result(s).

Impersonate Users within Yii Framework

Created 2 years ago by WoilTutorials5 comments – viewed 8,999 times – ( +20 )
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Force a User to Change Their Password (ChangePasswordFilter)

Created about a year ago by waterloomattTutorials1 comment – viewed 8,635 times – ( +14 )
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

i18n for your model in just 1 line

Created 3 years ago by mintaoTutorials0 comments – viewed 8,511 times – ( +12 )
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

How to display static pages in Yii with database content?

Created 7 months ago by yasenTutorials4 comments – viewed 8,421 times – ( +4 )
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:

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

Created 3 years ago by olafureTutorials0 comments – viewed 8,234 times – ( +2 )
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Advanced CTabView using CClipWidget

Created 4 years ago by krillzipTutorials1 comment – viewed 7,972 times – ( +2 )
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Caching the config main.php

Created about a year ago by dckurushinTutorials10 comments – viewed 7,930 times – ( +4 / -1 )
The config long array included every time, and it's not cached at all!

How to make customizable Db Table prefixes using ActiveRecord

Created 3 years ago by killermonkTutorials0 comments – viewed 7,699 times
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

Create Yii Project In Cloud9

Created 8 months ago by BenTutorials5 comments – viewed 7,672 times – ( +3 )
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

Drills : Search by a HAS_MANY relation

Created 5 months ago by softarkTutorials9 comments – viewed 7,664 times – ( +20 )
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.