Wiki articles

Showing 181-200 of 826 items.

Open bootstrap modal and load content via Ajax

Created 12 years ago by JbalTero JbalTero, updated 12 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: 66 466 times
Version: 1.1
Category: How-tos

CGridView and AjaxForm Connect

Created 15 years ago by PinkBrainPlan PinkBrainPlan, updated 15 years ago by PinkBrainPlan PinkBrainPlan.

<?php $this->widget('zii.widgets.grid.CGridView', array(

'dataProvider' => $dataprovider,
'id'=>'recipient_table',
    'selectionChanged'=>'updateEditForm',
'columns' => array(
	'rec_id',
            'org.nachname',
            'org.vorname',
            'org_id',
            array(
                'class'=>'CButtonColumn',
                'template'=>'{...
1 0
10 followers
Viewed: 30 850 times
Version: 1.1
Category: How-tos

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

Created 13 years ago by Xgamer99 Xgamer99, updated 13 years ago by Maurizio Domba Cerin 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: 24 773 times
Version: 1.1
Category: Tips

Syncing sessions between Yii and KCFinder

Created 13 years ago by Thanasis Fotis Thanasis Fotis, updated 12 years ago by Boaz 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: 19 412 times
Version: 1.1
Category: How-tos

How to Reuse File Upload Code via Behavior

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

Generate CTreeview from database table and update a model

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

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

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

Update specific cgridview html row after AJAX request

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

Check online users / set specific user offline

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

shortcut/usefull access roles methods RBAC

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

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

1 0
5 followers
Viewed: 17 116 times
Version: 1.1
Category: Tutorials

Profiling user requests

Created 12 years ago by M0ka M0ka, updated 12 years ago by M0ka 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: 11 877 times
Version: 1.1
Category: Tutorials

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 15 528 times
Version: 1.1
Category: Tutorials

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

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V 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: 91 060 times
Version: 2.0
Category: Tutorials

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

Created 12 years ago by Kartik V Kartik V, updated 12 years ago by Kartik V 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: 25 322 times
Version: 2.0
Category: How-tos

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

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

Make an ajax request to another server using JSONP

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 12 years ago by Kostas Apazidis (KonApaz) 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: 16 046 times
Version: 1.1
Category: Tips

Find geolocation info of client through another API

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 12 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: 11 299 times
Version: 1.1
Category: How-tos
1 0
3 followers
Viewed: 22 839 times
Version: 1.1
Category: How-tos

Migration the database schema to another one

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

using 'whenClient' for complex client side validation

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

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

1 0
3 followers
Viewed: 29 982 times
Version: 2.0
Category: How-tos