Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 91-100 of 256 result(s).

How to insert a Simple Dialog Box

Created 2 years ago by bluyellHow-tos4 comments – viewed 18,583 times – ( +5 / -2 ) – version 1.1
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

"safe" and "unsafe" Model validators (massive assignments)

Created 9 months ago by KonApazHow-tos4 comments – viewed 7,159 times – ( +4 / -2 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

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

Created 8 months ago by Rajith RHow-tos4 comments – viewed 8,776 times – ( +6 )
create a class file under protected\components named RActiveRecord.php

Visualization tree-multi subcategories as listbox or dropdownlist

Created 8 months ago by KonApazHow-tos4 comments – viewed 6,662 times – ( +4 )
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Tarpit for bad bots

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

Using standard filters in CGridView custom fields

Created 3 years ago by GOshaHow-tos4 comments – viewed 45,651 times – ( +16 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Integrating Wordpress and Yii,Working Out The Details.

Created about a year ago by drumaddictHow-tos4 comments – viewed 13,426 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress

Elementary introduction to using jQuery ajax and the yii framework

Created about a year ago by dhimesHow-tos4 comments – viewed 23,422 times – ( +6 ) – version 1.1
In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.
tags: AJAX

Select2 Infinite Scroll With Remote Data in Yii

Created 14 days ago by Israel AmaHow-tos4 comments – viewed 1,601 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

javascript + tabular input

Created 3 years ago by zaccariaHow-tos4 comments – viewed 24,298 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.