Wiki

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

How to implement cron in Yii 2

Created 2 years ago by hemcHow-tos10 comments – viewed 46,285 times – ( +10 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Single sign on across multiple subdomains

Created 6 years ago by ianaréHow-tos10 comments – viewed 44,053 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.

Update CGridview row separately using ajax request

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

Using Yii with Nginx and PHP-FPM

Created 5 years ago by LericHow-tos10 comments – viewed 58,882 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 85,767 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 3 years ago by darkheirHow-tos9 comments – viewed 6,732 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 3 years ago by JFReyesHow-tos9 comments – viewed 22,343 times – ( +10 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How to generate Yii-like Documentation

Created 5 years ago by AsgarothHow-tos9 comments – viewed 33,012 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 69,343 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 39,303 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.