Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 11-20 of 183 result(s).

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

Created about a year ago by fr0d0zHow-tos12 comments – viewed 13,294 times – ( +19 )
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.

How to use PHPExcel external library with Yii

Created 2 years ago by Antonio RamirezHow-tos12 comments – viewed 34,525 times – ( +22 / -1 )
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?
tags: yii, libraries

How to avoid multiple Ajax Request

Created 2 years ago by nickcvHow-tos12 comments – viewed 19,384 times – ( +14 )
CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs: the sent ajax requests will multiply themselves.

Using filters with CGridView and CArrayDataProvider

Created about a year ago by marcovtwoutHow-tos12 comments – viewed 24,518 times – ( +10 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

How to write secure Yii applications

Created about a year ago by François GannazHow-tos11 comments – viewed 69,453 times – ( +78 )
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

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

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

Uploading multiple images with CMultiFileUpload

Created 2 years ago by rsinghHow-tos11 comments – viewed 42,213 times – ( +33 )
"The documentation for CMultiFileUpload isn't clear!"

Searching and Sorting by Count of Related Items in CGridView

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

Using Yii with Nginx and PHP-FPM

Created 2 years ago by LericHow-tos10 comments – viewed 25,820 times – ( +17 )
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.

How to set up Unicode

Created 4 years ago by MikeHow-tos9 comments – viewed 35,914 times – ( +16 )
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode