Showing 1-20 of 120 items.

Yii behind a reverse proxy, SSL support and correct IP logging

Created 14 years ago by mrkmg mrkmg, updated 14 years ago by mrkmg mrkmg. 0 comments

If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

0 0
2
Viewed: 21 516 times
Version: 1.1
Category: Tips

关于Yii CHttpSession性能优化篇之源码流程分析

Created 15 years ago by Darwin Wen Darwin Wen, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

0 1
2
Viewed: 20 393 times
Version: 1.1
Category: Tips

What SQL-Statement creates yii?

Created 8 years ago by Necip Necip, updated 8 years ago by Necip Necip. 0 comments

The usual way to find out what Yii has created for an SQL query is to mutilate the SQL in the sourcecode and call the program again so that the SQL statement with errors is displayed. Or you can use the SQL logger, which must be switched on and off each time and logs all SQL statements, which leads to an enormous slowdown in program execution and decelerates your workflow.

0 0
1
Viewed: 17 505 times
Version: 1.1
Category: Tips

Making friends' configs, DB credentials and paths with version control

Created 13 years ago by Alexander Palamarchuk Alexander Palamarchuk, updated 13 years ago by ajsharma ajsharma. 1 comment

In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test s...

1 1
4
Viewed: 21 716 times
Version: 1.1
Category: Tips