Field Name | Description |
---|---|
id | int(PK) |
created_at | timestamp |
name | varchar(255) |
description | text |
categories_id | int(11) |
Field Name | Description |
---|---|
id | int(PK) |
created_at | timestamp |
name | varchar(255) |
$this->form[] = ['label'=>'Name','name'=>'name','type'=>'text'];
$this->form[] = ['label'=>'Description','name'=>'description','type'=>'textarea'];
$this->form[] = ['label'=>'Category','name'=>'categories_id','type'=>'select','datatable'=>'categories,name'];
$this->col[] = ['label'=>'Name','name'=>'name'];
$this->col[] = ['label'=>'Description','name'=>'description'];
$this->col[] = ['label'=>'Category','name'=>'categories_id','join'=>'categories,name'];