Wiki

Sorted by viewsX
Displaying 681-690 of 785 result(s).

Tarpit for bad bots

Created 5 years ago by mitherealHow-tos4 comments – viewed 6,990 times – ( +1 ) – version 1.1
I recently built a tarpit for bad bots.
tags: tarpit, bots

Simple Google Maps object for use with ajax maps

Created about a year ago by Chris BackhouseHow-tos1 comment – viewed 6,935 times – ( +1 ) – version 2.0
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
tags: googlemap, maps

an easy way to required multi columns(At least one cannot be blank)

Created 5 years ago by 1065227709Tips0 comments – viewed 6,900 times – ( +2 ) – version 1.1
in model add the following code:
tags: rules

Implementing menu items with progress (wait) dialog

Created 3 years ago by TrejderHow-tos0 comments – viewed 6,859 times – ( +1 ) – version 1.1
This article shows one of possible ways to implement menu items (as well as links), which displays a progress / wait dialog and are redirecting browser to destination URL in the same time. This is especially useful, for links or routes that are know to be loaded for a prolonged period of time (i.e. getting a lot of data from database).

Advanced CGridview issues - custom button using php and html

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 6,775 times – ( +1 ) – version 1.1
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

Caching strategy

Created 3 years ago by darkheirHow-tos9 comments – viewed 6,734 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

How to store array/widget configuration to the database with config validation rules

Created 2 years ago by Kartik VTutorials0 comments – viewed 6,664 times – ( +39 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db:

Entire Messages into javascript object

Created 4 years ago by markuxHow-tos0 comments – viewed 6,528 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 6,522 times – ( +1 ) – version 1.1
We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

Using Yii Gallery Manager in your Yii 1.x application

Created about a year ago by TrejderHow-tos0 comments – viewed 6,496 times – ( +1 ) – version 1.1
Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article to remember all these for future reference.