Wiki articles

Showing 181-200 of 826 items.

Troubleshooting Rights Extension

Created 14 years ago by junxiong junxiong, updated 14 years ago by junxiong junxiong.

Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

5 0
14 followers
Viewed: 34 401 times
Version: 1.1
Category: Tips

Tarpit for bad bots

Created 14 years ago by mithereal mithereal, updated 14 years ago by mithereal mithereal.

I recently built a tarpit for bad bots.

1 0
9 followers
Viewed: 11 939 times
Version: 1.1
Category: How-tos
Tags: bots, tarpit

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 14 years ago by jpablo jpablo, updated 14 years ago by jpablo jpablo.

Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

2 0
10 followers
Viewed: 25 802 times
Version: 1.1
Category: How-tos
Tags:

Multiple file upload handler

Created 14 years ago by hasanavi hasanavi, updated 14 years ago by hasanavi hasanavi.

Hi,

5 0
7 followers
Viewed: 35 649 times
Version: 1.1
Category: Tutorials

X-Sendfile - serve large static files efficiently from web applications

Created 15 years ago by Maurizio Domba Cerin Maurizio Domba Cerin, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.

29 0
20 followers
Viewed: 128 457 times
Version: 1.1
Category: How-tos

Setting application parameters dynamically in the back-end

Created 14 years ago by Pablovp Pablovp, updated 14 years ago by Pablovp Pablovp.

I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

12 0
16 followers
Viewed: 66 027 times
Version: 1.1
Category: Tutorials

How to obtain a grammatically correct translation of the model name in giix-generated view files

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

The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) .
But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

4 0
1 follower
Viewed: 22 629 times
Version: 1.1
Category: How-tos

Exporting CGridView results to CSV file

Created 14 years ago by RusAlex RusAlex, updated 14 years ago by RusAlex 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: 72 510 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by c@cba c@cba, updated 14 years ago by c@cba 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: 23 064 times
Version: 1.1
Category: How-tos

Collaborative software with git

Created 14 years ago by sensorario sensorario, updated 14 years ago by Maurizio Domba Cerin 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: 17 193 times
Version: 1.1
Category: Tutorials

Front-end developer's guide

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

This wiki is a work in progress.

10 0
19 followers
Viewed: 45 074 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by samdark samdark, updated 14 years ago by samdark 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: 22 683 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by c@cba c@cba, updated 14 years ago by c@cba 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: 84 184 times
Version: 1.1
Category: Tutorials

config Use MS SQL SERVER 2005 2008.

Created 15 years ago by vcxz_1982 vcxz_1982, updated 14 years ago by Asgaroth 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: 126 596 times
Version: 1.1
Category: Tutorials

Creating a CSS Driven Drop Down Menu using CMenu

Created 14 years ago by blindMoe blindMoe, updated 14 years ago by blindMoe 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: 102 366 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by marcanuy marcanuy, updated 14 years ago by marcanuy 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: 45 358 times
Version: 1.1
Category: Tutorials

CGridView keep focus on the control after filtering

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

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

5 0
10 followers
Viewed: 19 451 times
Version: 1.1
Category: How-tos

History Autocomplete

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

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

3 0
9 followers
Viewed: 23 180 times
Version: 1.1
Category: How-tos

How to catch and log MySQL deadlock errors

Created 14 years ago by seb seb, updated 14 years ago by seb 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: 23 458 times
Version: 1.1
Category: Tips
Tags: database

javascript + tabular input

Created 15 years ago by zaccaria zaccaria, updated 14 years ago by Maurizio Domba Cerin 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: 42 480 times
Version: 1.1
Category: How-tos