Wiki

Sorted by date (updated)X
Displaying 571-580 of 771 result(s).

Use phing to make Yii application "installable"

Updated 4 years ago by Maurizio Domba CerinHow-tos3 comments – viewed 8,844 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

How to log context information to logger (session id, user, ...)

Updated 4 years ago by ajsharmaTutorials0 comments – viewed 14,682 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Update two models with one view

Updated 4 years ago by SebKTips11 comments – viewed 38,574 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

How to use an application behavior to maintain runtime configuration

Updated 4 years ago by PablovpHow-tos3 comments – viewed 30,067 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

Change buttons on our CGridView extending yii

Updated 4 years ago by sensorarioTips6 comments – viewed 27,648 times – ( +12 ) – version 1.1
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

CGridView keep state of page and sort.

Updated 4 years ago by DanielHow-tos5 comments – viewed 25,960 times – ( +6 ) – version 1.1
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.

Using loginRequiredAjaxResponse to solve ajax session timeout

Updated 4 years ago by RutgerHow-tos3 comments – viewed 24,734 times – ( +13 ) – version 1.1
This solution requires Yii 1.1.9 or above

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

Updated 4 years ago by Maurizio Domba CerinTips0 comments – viewed 9,529 times – ( +1 / -1 ) – version 1.1
当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

javascript + tabular input

Updated 4 years ago by Maurizio Domba CerinHow-tos4 comments – viewed 30,816 times – ( +14 / -1 ) – version 1.1
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

How to catch and log MySQL deadlock errors

Updated 4 years ago by sebTips1 comment – viewed 11,448 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database