Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 41-50 of 328 result(s).

Caching strategy

Created about a year ago by darkheirHow-tos9 comments – viewed 4,449 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

Single sign on across multiple subdomains

Created 4 years ago by ianaréHow-tos9 comments – viewed 31,611 times – ( +31 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

How to generate Yii-like Documentation

Created 3 years ago by AsgarothHow-tos9 comments – viewed 26,354 times – ( +45 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Local time zones and locales

Created 3 years ago by Russell EnglandHow-tos9 comments – viewed 53,712 times – ( +14 / -2 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

How to use the official Yii installer for Composer (**DEPRECATED**)

Created about a year ago by br0skHow-tos9 comments – viewed 14,728 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 3 years ago by RusAlexHow-tos9 comments – viewed 42,501 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Generate a multi-lever array sub-category for a menu

Created about a year ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 12,021 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 9,493 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Accessing data in a join table with the related models

Created 3 years ago by fsbHow-tos8 comments – viewed 75,731 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

A Multi-Tenant Strategy using Yii and MySQL

Created about a year ago by JFReyesHow-tos8 comments – viewed 11,544 times – ( +9 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.