Wiki articles

Showing 181-200 of 651 items.

Exporting CGridView results to CSV file

Created 12 years ago by RusAlex, updated 12 years ago by RusAlex.

A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.

6 3
18 followers
Viewed: 69 362 times
Version: 1.1
Category: Tutorials

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

9 0
9 followers
Viewed: 19 508 times
Version: 1.1
Category: How-tos

Collaborative software with git

Created 12 years ago by sensorario, updated 12 years ago by Maurizio Domba Cerin.

The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

9 0
9 followers
Viewed: 13 855 times
Version: 1.1
Category: Tutorials

Front-end developer's guide

Created 12 years ago by jonah, updated 12 years ago by waitekk.

This wiki is a work in progress.

10 0
19 followers
Viewed: 40 488 times
Version: 1.1
Category: Tutorials

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 12 years ago by samdark, updated 12 years ago by samdark.

Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

21 0
5 followers
Viewed: 20 291 times
Version: 1.1
Category: How-tos

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 12 years ago by c@cba, updated 12 years ago by c@cba.

    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this:
'value'=>'$data->author->username',.
    Now we might want to use $data in the declaration of the `...

19 1
14 followers
Viewed: 79 770 times
Version: 1.1
Category: Tutorials

config Use MS SQL SERVER 2005 2008.

Created 12 years ago by vcxz_1982, updated 12 years ago by Asgaroth.

Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

3 0
8 followers
Viewed: 75 860 times
Version: 1.1
Category: Tutorials

Creating a CSS Driven Drop Down Menu using CMenu

Created 12 years ago by blindMoe, updated 12 years ago by blindMoe.

[CMenu] offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

19 1
25 followers
Viewed: 98 570 times
Version: 1.1
Category: How-tos

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 12 years ago by marcanuy, updated 12 years ago by marcanuy.

I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

16 0
12 followers
Viewed: 41 122 times
Version: 1.1
Category: Tutorials

CGridView keep focus on the control after filtering

Created 12 years ago by jayala, updated 12 years ago by jayala.

You can find the reason why I wrote this article here.

5 0
10 followers
Viewed: 16 975 times
Version: 1.1
Category: How-tos

History Autocomplete

Created 12 years ago by zaccaria, updated 12 years ago by Maurizio Domba Cerin.

In application development we often have to choose how to mange recurrent values.

3 0
9 followers
Viewed: 19 813 times
Version: 1.1
Category: How-tos

How to catch and log MySQL deadlock errors

Created 11 years ago by seb, updated 11 years ago by seb.

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.

4 0
7 followers
Viewed: 20 563 times
Version: 1.1
Category: Tips
Tags: database

javascript + tabular input

Created 13 years ago by zaccaria, updated 11 years ago by Maurizio Domba Cerin.

If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.

13 1
25 followers
Viewed: 39 192 times
Version: 1.1
Category: How-tos

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

Created 12 years ago by Darwin Wen, updated 11 years ago by Maurizio Domba Cerin.

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

0 1
2 followers
Viewed: 17 198 times
Version: 1.1
Category: Tips

CGridView keep state of page and sort.

Created 11 years ago by Daniel, updated 11 years ago by Daniel.

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.

5 0
13 followers
Viewed: 35 848 times
Version: 1.1
Category: How-tos

Change buttons on our CGridView extending yii

Created 12 years ago by sensorario, updated 11 years ago by sensorario.

In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

9 0
9 followers
Viewed: 35 803 times
Version: 1.1
Category: Tips

How to use an application behavior to maintain runtime configuration

Created 12 years ago by zaccaria, updated 11 years ago by Pablovp.

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.

26 0
25 followers
Viewed: 42 285 times
Version: 1.1
Category: How-tos

Update two models with one view

Created 12 years ago by sensorario, updated 11 years ago by SebK.

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).

9 3
13 followers
Viewed: 55 369 times
Version: 1.1
Category: Tips

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

Created 14 years ago by olafure, updated 11 years ago by ajsharma.

Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.

2 0
5 followers
Viewed: 24 180 times
Version: 1.1
Category: Tutorials
Tags: Logging

Use phing to make Yii application "installable"

Created 11 years ago by sensorario, updated 11 years ago by Maurizio Domba Cerin.

To use this "how-to", you need to install phing in your machine.

7 0
10 followers
Viewed: 14 613 times
Version: 1.1
Category: How-tos
Tags: phing