Wiki articles

Showing 181-200 of 823 items.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 12 years ago by Xgamer99, updated 12 years ago by Maurizio Domba Cerin.

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7 followers
Viewed: 22 384 times
Version: 1.1
Category: Tips

Syncing sessions between Yii and KCFinder

Created 12 years ago by Thanasis Fotis, updated 11 years ago by Boaz.

>Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If t...

1 0
6 followers
Viewed: 17 492 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

Created 11 years ago by Ahamed Rifaideen, updated 11 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: 11 488 times
Version: 1.1
Category: How-tos

Generate CTreeview from database table and update a model

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

Update specific cgridview html row after AJAX request

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

Check online users / set specific user offline

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

shortcut/usefull access roles methods RBAC

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

These are functions that I used very often, may helps you!

1 0
5 followers
Viewed: 15 420 times
Version: 1.1
Category: Tutorials

Profiling user requests

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

How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

1 0
3 followers
Viewed: 10 148 times
Version: 1.1
Category: Tutorials

Yii tinymce结合syntaxHighlighter和syntax

Created 14 years ago by Darwin Wen, updated 14 years ago by Darwin Wen.

首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

1 0
0 follower
Viewed: 14 065 times
Version: 1.1
Category: Tutorials

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

1 0
43 followers
Viewed: 86 158 times
Version: 2.0
Category: Tutorials

Using the yii2-datecontrol extension along with yii2-detail-view widget

Created 11 years ago by Kartik V, updated 11 years ago by Kartik V.

The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

1 0
37 followers
Viewed: 22 485 times
Version: 2.0
Category: How-tos

Save or Update Multiple related model values in one Tabular input form

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

In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

1 0
1 follower
Viewed: 41 415 times
Version: 1.1
Category: Tutorials

Make an ajax request to another server using JSONP

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

There are cases that you want to make an ajax request to another server and get the results.

1 0
2 followers
Viewed: 14 555 times
Version: 1.1
Category: Tips

Find geolocation info of client through another API

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

Save uploaded file with any filename characters

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

First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

1 0
3 followers
Viewed: 21 000 times
Version: 1.1
Category: How-tos

Migration the database schema to another one

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

In this wiki I will show how to copy a schema from a database to another one

1 0
5 followers
Viewed: 12 449 times
Version: 1.1
Category: Tutorials

using 'whenClient' for complex client side validation

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

You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).

1 0
3 followers
Viewed: 27 216 times
Version: 2.0
Category: How-tos

Bootstrap Yii cGridView add popup button

Created 11 years ago by Arockia Johnson SR, updated 11 years ago by Arockia Johnson SR.

Hi,

1 0
3 followers
Viewed: 21 756 times
Version: 1.1
Category: How-tos

Insert data from database to another database table

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

According to below wiki we could migrate database schema to another database

1 0
2 followers
Viewed: 16 984 times
Version: 1.1
Category: Tutorials