Wiki

Articles in category "how-tos"X
Displaying 81-90 of 182 result(s).

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

Created about a year ago by bennounaHow-tos10 comments – viewed 14,113 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).

CGridView keep state of page and sort.

Created about a year ago by DanielHow-tos3 comments – viewed 10,031 times – ( +3 )
Remember-filters-gridview is one of the must-use extension on all of my project. However, it lacks of storing the page and sort variables of the grid view.

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created about a year ago by fr0d0zHow-tos12 comments – viewed 13,189 times – ( +18 )
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

Using loginRequiredAjaxResponse to solve ajax session timeout

Created about a year ago by RutgerHow-tos3 comments – viewed 9,130 times – ( +12 )
This solution requires Yii 1.1.9 or above

Searching and Sorting by Count of Related Items in CGridView

Created about a year ago by softarkHow-tos10 comments – viewed 16,111 times – ( +21 )
Let's say we have two models and relation between them:

Using CJuiDatePicker for CGridView filter

Created about a year ago by softarkHow-tos3 comments – viewed 15,489 times – ( +16 )
We can use a CJuiDatePicker for a CGridView inline filter.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created about a year ago by samdarkHow-tos1 comment – viewed 6,788 times – ( +20 )
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

Getting the Most out of APC for Yii

Created about a year ago by Da:SourcererHow-tos7 comments – viewed 12,179 times – ( +15 )
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

AssetManager: clearing browser's cache on site update

Created about a year ago by dhampikHow-tos2 comments – viewed 12,157 times – ( +14 )
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

Simple Share Widget for Facebook, twitter and google+

Created about a year ago by softarkHow-tos0 comments – viewed 9,625 times – ( +9 )
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.