2017 © Pedro Peláez
 

kohana-module data-table

Kohana wrapper for generating standardised jQuery DataTables

image

happydemon/data-table

Kohana wrapper for generating standardised jQuery DataTables

  • Sunday, February 9, 2014
  • by happyDemon
  • Repository
  • 3 Watchers
  • 8 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

dataTable

Kohana 3.3 wrapper for generating standardised jQuery DataTables that's prepared to be integrated with twitter bootstrap layouts., (*1)

This module generates: - your table's HTML - a javascript file that initialises your table - handles the dataTable request to load/filter/sort your table., (*2)

The table's HTML and javascript get cached after being generated (its lifetime can be set in the config file)., (*3)

Install

Git

git clone git://github.com/morgan/kohana-paginate.git modules/paginate
git clone git://github.com/morgan/kohana-datatables.git modules/datatables
git clone git://github.com/happyDemon/dataTable.git modules/dataTable

Composer

Add paginate and datatables to your composer.json repositories, (*4)

"repositories": [
        {
            "type": "package",
            "package": {
                "name": "morgan/kohana-paginate",
                "version": "0.3.0",
                "type" : "kohana-module",
                "source": {
                    "url": "https://github.com/morgan/kohana-paginate",
                    "type": "git"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "morgan/kohana-datatables",
                "version": "0.2.0",
                "type" : "kohana-module",
                "source": {
                    "url": "https://github.com/morgan/kohana-datatables",
                    "type": "git"
                }
            }
        }
    ]

Add "happydemon/datatable" to your dependencies, (*5)

{
  "require": {
        "php":">=5.4",
        "composer/installers": "*",
        "happydemon/datatable": "0.3"
    }
}

Example

A controller was added to show how you could implement this module's functionality, all that's left to do is setup the table's columns., (*6)

protected function _setup_table($table) {
    $this->_model = ORM::factory('User');

    $table->name('users');
    $table->add_column('username', array('head' => 'Username'));
    $table->add_column('email', array('head' => 'E-mail'));
    $table->add_column('logins', array('head' => '# logins', 'class' => 'span1'));

    return $table;
}

Gittip Badge, (*7)

Bitdeli Badge, (*8)

The Versions

09/02 2014

dev-master

9999999-dev https://github.com/happyDemon/dataTable

Kohana wrapper for generating standardised jQuery DataTables

  Sources   Download

MIT

The Requires

 

orm jquery ui generator data datatable kohana

20/02 2013

0.4.0

0.4.0.0 https://github.com/happyDemon/dataTable

Kohana wrapper for generating standardised jQuery DataTables

  Sources   Download

MIT

The Requires

 

orm jquery ui generator data datatable kohana

20/02 2013

0.3.0

0.3.0.0 https://github.com/happyDemon/dataTable

Kohana wrapper for generating standardised jQuery DataTables

  Sources   Download

MIT

The Requires

 

orm jquery ui generator data datatable kohana

12/02 2013

0.2.0

0.2.0.0 https://github.com/happyDemon/dataTable

Kohana wrapper for generating standardised jQuery DataTables

  Sources   Download

MIT

The Requires

 

orm jquery ui generator data datatable kohana

12/02 2013

0.1.0

0.1.0.0 https://github.com/happyDemon/dataTable

Kohana wrapper for generating standardised jQuery DataTables

  Sources   Download

MIT

The Requires

 

orm jquery ui generator data datatable kohana