Wiki

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

How to setup RBAC with a php file

Created 3 years ago by bettorHow-tos12 comments – viewed 39,374 times – ( +24 / -4 )
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

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

Created about a year ago by fr0d0zHow-tos12 comments – viewed 13,979 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 35,885 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 20,228 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 25,705 times – ( +12 )
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 72,554 times – ( +80 )
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.

Uploading multiple images with CMultiFileUpload

Created 2 years ago by rsinghHow-tos11 comments – viewed 44,116 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,955 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 26,719 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 37,548 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