No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
TButtonColumn.php
TWebLogRoute.php
WhoisAction.php

README.md

Yii Other Extensions

WhoisAction

Action to verify whois based in domain name passed by $_GET['url']

Usage

class TestController extends CController
{
    public function actions() {
        return array(
            'edit' => 'ext.WhoisAction',
        );
    }
}

TWebLogRoute

Alternative for CWebLogRoute with button to show the log

TButtonColumn

Represents a grid view column to extends CButtonColumn POST ajax functions. This extension function clones ajax "click" of delete button.

array(
    'class' => 'ext.TButtonColumn',
    'header' => 'Actions',
    'template' =>'{teste}',
    'buttons'=>array(
        'teste'=>array(
            'url'=>'Yii::app()->controller->createUrl("controller/action",array("id"=>$data->primaryKey))',
            'imageUrl' => false,
            'label' => 'Teste',
            'options' => array(
                'title' => 'Test',
                'ajaxClick' => true,        // NEW
                'ajaxConfirm' => 'Testing', // NEW
                'ajaxSuccess' => 'js: $.fn.yiiGridView.update("other-grid");', // NEW
                'ajaxData' => array(        // NEW
                    'test1Post' => 'dataPostTest', // Raw data
                    'test2Post' => 'js: $(th).data("test")', // JS function to get data
                ),
            ),
        ),
    ),
),
Option Type Description
`ajaxClick` Boolean True => Enable (Ajax POST) / False => Normal button (GET)
`ajaxConfirm` String The confirmation message to be displayed when button is clicked.
If not set or false, no confirmation message will be displayed.
If starting with `js:` make a javascript personalized (`this` refers to `` tag).
`ajaxSuccess` String Must start with `js:` to make a custom javascript.
`th` refers `this` of the tag.
`ajaxData` Array Aditional Data to send in POST request header (@see CJavaScript::encode())
(`this` refers to `` tag).