Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 1-10 of 182 result(s).

How to Setting Layouts in Yii

Updated a day ago by ruderbytesHow-tos1 comment – viewed 3,388 times – ( +2 / -3 )
usually someone confused to make layouts in yii.

Turn Web HTML Into Newsletter

Updated 3 days ago by yasenHow-tos0 comments – viewed 3,828 times – ( +5 )
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Real-time display of server push data using Server-Sent Events (SSE)

Updated 4 days ago by bennounaHow-tos10 comments – viewed 14,153 times – ( +11 )
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).

defaultScope

Updated 14 days ago by Gerhard LiebenbergHow-tos4 comments – viewed 1,850 times – ( +3 )
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Cron Jobs in Yii

Updated 15 days ago by aarondfrancisHow-tos1 comment – viewed 2,726 times – ( +2 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Logging to Heroku's logs from Yii

Updated 17 days ago by aarondfrancisHow-tos0 comments – viewed 965 times – ( +2 )
In order to get your Yii logs into Heroku's logs, you have to work a little bit of magic. You'll need to modify the boot.sh script and add the following two lines:
tags: heroku, Logging

Profiling using XDebug

Updated 19 days ago by le_topHow-tos1 comment – viewed 1,088 times – ( +2 )
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Changing Controllers Name

Updated 22 days ago by TrejderHow-tos0 comments – viewed 7,997 times – ( +4 )
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Simple authorization system

Updated 25 days ago by GustavoHow-tos1 comment – viewed 15,275 times – ( +16 )
How to create a simple (non-RBAC) authorization system