1. Go to this page and download the library: Download hindy/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/ */
hindy / table example snippets
namespace Modules\Example\Tables;
use Mindy\Table\Columns\RawColumn;
use Mindy\Table\Table;
use Modules\Example\ExampleModule;
class ExampleDataTable extends Table
{
public function getColumns()
{
return [
'created_at' => [
'class' => RawColumn::className(),
'title' => CoreModule::t('Created at')
],
'message' => [
'class' => RawColumn::className(),
'title' => CoreModule::t('Message')
],
'ip' => [
'class' => RawColumn::className(),
'title' => CoreModule::t('Ip')
],
'username',
'url'
];
}
}