Wiki

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

Single sign on across multiple subdomains

Created 5 years ago by ianarĂ©How-tos10 comments – viewed 42,277 times – ( +32 ) – 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.

Using Yii with Nginx and PHP-FPM

Created 5 years ago by LericHow-tos10 comments – viewed 56,509 times – ( +18 ) – version 1.1
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

Creating a CSS Driven Drop Down Menu using CMenu

Created 5 years ago by blindMoeHow-tos10 comments – viewed 83,663 times – ( +22 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

Caching strategy

Created 2 years ago by darkheirHow-tos9 comments – viewed 6,359 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

A Multi-Tenant Strategy using Yii and MySQL

Created 2 years ago by JFReyesHow-tos9 comments – viewed 20,771 times – ( +10 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Update CGridview row separately using ajax request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 13,774 times – ( +7 ) – version 1.1
There are cases you want to update a record on CGridview directly

How to generate Yii-like Documentation

Created 5 years ago by AsgarothHow-tos9 comments – viewed 31,909 times – ( +46 ) – 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 5 years ago by Russell EnglandHow-tos9 comments – viewed 66,773 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 3 years ago by br0skHow-tos9 comments – viewed 37,166 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 5 years ago by RusAlexHow-tos9 comments – viewed 53,147 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.