Wiki

Sorted by commentsX
Displaying 261-270 of 786 result(s).

Managing constants easily

Created 6 years ago by briiC.lvTips4 comments – viewed 18,278 times – ( +4 / -1 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Multiple Database Connection : Select database based on login user id, Dynamic

Created 4 years ago by Rajith RHow-tos4 comments – viewed 29,662 times – ( +9 / -7 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Visualization tree-multi subcategories as listbox or dropdownlist

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 16,630 times – ( +4 / -1 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Integrating with other frameworks

Created 8 years ago by KJediTutorials4 comments – viewed 22,506 times – ( +5 / -2 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

Tarpit for bad bots

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

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 6 years ago by c@cbaHow-tos4 comments – viewed 37,911 times – ( +14 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

Load data from internal/external source to fill form fields

Created 2 years ago by skwordenHow-tos4 comments – viewed 15,338 times – ( +1 / -1 ) – version 2.0
This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

Ajax Login form with validation errors inside jQuery modal dialog

Created 4 years ago by praviTutorials4 comments – viewed 37,644 times – ( +6 / -1 ) – version 1.1
I would like to share my little experience with Yii to the community in the form of the below small wiki:
tags: ajax login

CGridView keep focus on the control after filtering

Created 5 years ago by jayalaHow-tos4 comments – viewed 11,746 times – ( +6 / -1 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Simple Share Widget for Facebook, twitter and google+

Created 5 years ago by softarkHow-tos4 comments – viewed 23,962 times – ( +10 / -1 ) – version 1.1
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.