Wiki articles

Showing 181-200 of 822 items.

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

[pt-br] O guia de estudos do Yii para iniciantes

Created 11 years ago by Rodrigo Coelho, updated 11 years ago by Rodrigo Coelho.

You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

1 0
3 followers
Viewed: 13 808 times
Version: 1.1
Category: Tips
Tags:

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 645 times
Version: 1.1
Category: How-tos

CGridView and AjaxForm Connect

Created 13 years ago by PinkBrainPlan, updated 13 years ago by 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: 27 368 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by Xgamer99, updated 11 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: 21 292 times
Version: 1.1
Category: Tips

Syncing sessions between Yii and KCFinder

Created 11 years ago by Thanasis Fotis, updated 10 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: 16 475 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

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 589 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

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

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

shortcut/usefull access roles methods RBAC

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

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

1 0
5 followers
Viewed: 14 402 times
Version: 1.1
Category: Tutorials

Profiling user requests

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

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 13 132 times
Version: 1.1
Category: Tutorials

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

Created 9 years ago by Kartik V, updated 9 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: 82 860 times
Version: 2.0
Category: Tutorials

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

Created 9 years ago by Kartik V, updated 9 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: 20 882 times
Version: 2.0
Category: How-tos

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

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

Make an ajax request to another server using JSONP

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

Find geolocation info of client through another API

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

Save uploaded file with any filename characters

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