Wiki

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

Implementing cron jobs with Yii

Created 4 years ago by samdarkHow-tos6 comments – viewed 57,443 times – ( +30 / -1 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

How to use PHPExcel external library with Yii

Created 4 years ago by Antonio RamirezHow-tos13 comments – viewed 67,387 times – ( +29 / -1 ) – version 1.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?

How to set up Unicode

Created 6 years ago by MikeHow-tos10 comments – viewed 69,011 times – ( +19 ) – version 1.1
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

AssetManager: clearing browser's cache on site update

Created 3 years ago by dhampikHow-tos4 comments – viewed 25,421 times – ( +19 ) – version 1.1
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.

How to log and debug variables using CWebLogRoute

Created 4 years ago by Antonio RamirezHow-tos8 comments – viewed 51,834 times – ( +18 ) – version 1.1
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

Hyphenation of routes in URL management

Created 2 years ago by qiangHow-tos6 comments – viewed 16,119 times – ( +18 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Using Yii with Nginx and PHP-FPM

Created 4 years ago by LericHow-tos10 comments – viewed 45,242 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.

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 31,002 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Run Yiic directly from your app without a shell

Created 3 years ago by jacmoeHow-tos6 comments – viewed 23,791 times – ( +18 ) – version 1.1
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

Url: hide index.php

Created 3 years ago by HermansHow-tos16 comments – viewed 114,510 times – ( +27 / -1 ) – version 1.1
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.