PHP code example of happydemon / data-table
1. Go to this page and download the library: Download happydemon/data-table library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
happydemon / data-table example snippets
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;
}
javascript
{
".4",
"composer/installers": "*",
"happydemon/datatable": "0.3"
}
}