Wiki articles in category How-tos

Showing 41-60 of 300 items.

Yii 1.1: How To add id or class to CMenu items ?

Created 11 years ago by Louis Gac Louis Gac, updated 11 years ago by Louis Gac Louis Gac.

CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

1 0
1 follower
Viewed: 28 518 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 12 991 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing

How to create a Widget - Recent Comments widget

Created 11 years ago by Nisanth thulasi Nisanth thulasi, updated 7 years ago by samdark samdark.

Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

5 0
6 followers
Viewed: 46 424 times
Version: 1.1
Category: How-tos

Using rights extension with different table and column name

Created 11 years ago by Ibrar Turi Ibrar Turi, updated 11 years ago by Ibrar Turi Ibrar Turi.

Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.

0 0
2 followers
Viewed: 7 353 times
Version: 1.1
Category: How-tos
1 0
3 followers
Viewed: 23 460 times
Version: 1.1
Category: How-tos
1 0
3 followers
Viewed: 22 246 times
Version: 1.1
Category: How-tos

Find geolocation info of client through another API

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

1 0
2 followers
Viewed: 10 675 times
Version: 1.1
Category: How-tos

Check online users / set specific user offline

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

1 0
4 followers
Viewed: 21 425 times
Version: 1.1
Category: How-tos

Update specific cgridview html row after AJAX request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

1 0
2 followers
Viewed: 26 450 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 20 077 times
Version: 1.1
Category: How-tos

Update related models of a model using listBox and checkBoxList in the form

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

1 0
1 follower
Viewed: 53 137 times
Version: 1.1
Category: How-tos

Generate CTreeview from database table and update a model

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

1 0
1 follower
Viewed: 15 598 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

Created 11 years ago by Ahamed Rifaideen Ahamed Rifaideen, updated 11 years ago by Ahamed Rifaideen Ahamed Rifaideen.

hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.

1 0
1 follower
Viewed: 12 477 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 12 580 times
Version: 1.1
Category: How-tos

Open bootstrap modal and load content via Ajax

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

My goal here is to Open bootstrap modal and load ANY content using ajax response.

1 0
2 followers
Viewed: 65 555 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

There are cases you want to update a record on CGridview directly

5 0
8 followers
Viewed: 27 707 times
Version: 1.1
Category: How-tos

Advanced CGridview issues - custom button using php and html

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 15 989 times
Version: 1.1
Category: How-tos

How to avoid a database update if the ActiveRecord was not modified

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

The classic Yii way for doing an update action is as follows:

1 0
3 followers
Viewed: 31 747 times
Version: 1.1
Category: How-tos

Login Form With email or Whatever

Created 11 years ago by nabil abdouali nabil abdouali, updated 11 years ago by nabil abdouali nabil abdouali.

Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII

1 2
2 followers
Viewed: 34 806 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 12 years ago by IsraelAma IsraelAma, updated 12 years ago by CeBe CeBe.

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.

3 0
5 followers
Viewed: 25 394 times
Version: 1.1
Category: How-tos