Wiki articles in category How-tos

Showing 41-60 of 292 items.

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: 25 200 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: 18 935 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: 52 320 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: 14 777 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: 11 650 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 11 599 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: 63 943 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: 26 497 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: 14 918 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: 29 105 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: 33 628 times
Version: 1.1
Category: How-tos

Select2 Infinite Scroll With Remote Data in Yii

Created 11 years ago by IsraelAma IsraelAma, updated 11 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: 23 560 times
Version: 1.1
Category: How-tos

How to Enhance a CGridView

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

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

2 0
5 followers
Viewed: 13 033 times
Version: 1.1
Category: How-tos

Safely checking if a model class exists (without exploding)

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

Simple example for language translation

Created 11 years ago by RKA RKA, updated 11 years ago by CeBe 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: 39 595 times
Version: 1.1
Category: How-tos
Tags: i18n, Yii

Attaching multiple event handlers to onBeginRequest

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

There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

1 0
2 followers
Viewed: 16 867 times
Version: 1.1
Category: How-tos

How to limit number of guest page views

Created 11 years ago by PeRoChAk PeRoChAk, updated 11 years ago by CeBe CeBe.

In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

2 0
5 followers
Viewed: 9 998 times
Version: 1.1
Category: How-tos

How to create a simple logout link in the view?

Created 11 years ago by mi.sarah mi.sarah, updated 11 years ago by CeBe CeBe.

Here you learn to create and set a simple ahref-link to logout the current user.

0 2
1 follower
Viewed: 50 297 times
Version: 1.1
Category: How-tos

Email by YiiMailer, Call Outlook, IMAP

Created 11 years ago by Scott_Huang Scott_Huang, updated 11 years ago by CeBe CeBe.

In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is call outlook as COM.

0 0
6 followers
Viewed: 22 430 times
Version: 1.1
Category: How-tos

Configuring Yii to run on both Windows and OSX

Created 11 years ago by trond trond, updated 11 years ago by CeBe CeBe.

If you develop your Yii project on both Windows and Mac, there can be a problem setting up the configuration unless the configurations for both system are identical. On my machines I have the following configurations:

1 0
4 followers
Viewed: 14 227 times
Version: 1.1
Category: How-tos
Tags: config