Wiki articles

Showing 81-100 of 650 items.

Update specific cgridview html row after AJAX request

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

Insert a model record using CGridview

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

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 13 516 times
Version: 1.1
Category: How-tos

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

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

Generate CTreeview from database table and update a model

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

How to Reuse File Upload Code via Behavior

Created 5 years ago by Ahamed Rifaideen, updated 5 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: 8 713 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 7 296 times
Version: 1.1
Category: How-tos

FORM with GET method causes repeated stacking of URL Parameters

Created 5 years ago by Kartik V, updated 5 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(); `

4 2
40 followers
Viewed: 45 998 times
Version: all
Category: Tips

Open bootstrap modal and load content via Ajax

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

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

1 0
2 followers
Viewed: 53 621 times
Version: 1.1
Category: How-tos

Update CGridview row separately using ajax request

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

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

5 0
8 followers
Viewed: 20 265 times
Version: 1.1
Category: How-tos

Advanced CGridview issues - custom button using php and html

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

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

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

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

1 0
3 followers
Viewed: 17 284 times
Version: 1.1
Category: How-tos

Update Gridview with Dropdown Selection

Created 5 years ago by lgastmans, updated 5 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: 13 458 times
Version: 1.1
Category: Tips

Login Form With email or Whatever

Created 5 years ago by nabil abdouali, updated 5 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: 23 583 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 5 years ago by IsraelAma, updated 5 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: 15 220 times
Version: 1.1
Category: How-tos

Automatically get the SVN Revision Number of your Project

Created 5 years ago by jcagentzero, updated 5 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: 8 384 times
Version: all
Category: Tutorials

How to Enhance a CGridView

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

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

2 0
5 followers
Viewed: 8 194 times
Version: 1.1
Category: How-tos

Safely checking if a model class exists (without exploding)

Created 5 years ago by Boaz, updated 5 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: 11 572 times
Version: 1.1
Category: How-tos

Making a CGridView to keep the selection between page changes

Created 5 years ago by bluyell, updated 5 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: 9 031 times
Version: 1.1
Category: Tutorials

CSqlDataProvider in CGridView

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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: 30 429 times
Version: 1.1
Category: Tutorials

Simple example for language translation

Created 5 years ago by RKA, updated 5 years ago by CeBe.

Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.

1 0
5 followers
Viewed: 28 770 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii