Wiki articles

Showing 81-100 of 651 items.

Check online users / set specific user offline

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by 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: 18 870 times
Version: 1.1
Category: How-tos

Update specific cgridview html row after AJAX request

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by 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: 23 339 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

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

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 17 475 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by 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: 23 465 times
Version: 1.1
Category: How-tos

Generate CTreeview from database table and update a model

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by 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: 13 590 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

Created 9 years ago by Ahamed Rifaideen, updated 9 years ago by 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: 10 716 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 10 329 times
Version: 1.1
Category: How-tos

FORM with GET method causes repeated stacking of URL Parameters

Created 9 years ago by Kartik V, updated 9 years ago by toph.

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

7 2
41 followers
Viewed: 61 398 times
Version: all
Category: Tips

Open bootstrap modal and load content via Ajax

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

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

1 0
2 followers
Viewed: 61 647 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

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

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

5 0
8 followers
Viewed: 25 023 times
Version: 1.1
Category: How-tos

Advanced CGridview issues - custom button using php and html

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by 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: 13 508 times
Version: 1.1
Category: How-tos

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

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

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

1 0
3 followers
Viewed: 26 152 times
Version: 1.1
Category: How-tos

Update Gridview with Dropdown Selection

Created 9 years ago by lgastmans, updated 9 years ago by lgastmans.

I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...

0 0
4 followers
Viewed: 16 932 times
Version: 1.1
Category: Tips

Login Form With email or Whatever

Created 9 years ago by nabil abdouali, updated 9 years ago by 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: 31 712 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 9 years ago by IsraelAma, updated 9 years ago by 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: 21 392 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 9 years ago by jcagentzero, updated 9 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 12 789 times
Version: all
Category: Tutorials

How to Enhance a CGridView

Created 9 years ago by bluyell, updated 9 years ago by CeBe.

by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

2 0
5 followers
Viewed: 11 438 times
Version: 1.1
Category: How-tos

Safely checking if a model class exists (without exploding)

Created 9 years ago by Boaz, updated 9 years ago by CeBe.

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 17 459 times
Version: 1.1
Category: How-tos

Making a CGridView to keep the selection between page changes

Created 10 years ago by bluyell, updated 9 years ago by CeBe.

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 12 623 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

Created 10 years ago by Kostas Apazidis (KonApaz), updated 9 years ago by CeBe.

In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

3 0
9 followers
Viewed: 35 776 times
Version: 1.1
Category: Tutorials