dimaxz / activetable
ActiveTable Engine, grid+form
Installs: 4 754
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Requires
- php: ^8.0
- dimaxz/repository: ^2.0
Requires (Dev)
- phpunit/phpunit: 9.5.*
- symfony/var-dumper: *
- dev-master
- v3.0.2
- v3.0.1
- v3.0
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2
- v2.1.1
- v2.1
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0
- dev-reliase-3.0
- dev-fix-interface
- dev-fixes-exception
- dev-sorted-false
- dev-modifed-table
- dev-correct-interfaces
- dev-fix-top-controls
- dev-fixes-names
- dev-feature/new-architecture
- dev-fix-filter
- dev-fix-sorting
This package is auto-updated.
Last update: 2024-11-07 12:15:55 UTC
README
ActiveTable Engine, grid+form
Простая таблица с формой
//создаем объект таблицы, передаем репозитрий реализующий интерфейс Repo/CrudRepository из пакета dimaxz/repository $table = new DataTableSimple(new UserRepository,"users"); $table->setSearchCriteria( new UserCriteria() ); //колонки $table->addColumn( new ColumnTable("id","№")); $table->addColumn( new ColumnTable("name","Наименование")); $table->addColumn( new ColumnTable("email","E-mail")); //поля $table->addField( new FormInput("id")); $table->addField( new FormInput("name")); $table->addField( new FormInput("email")); //вывод в html dump($table->render());
Пример проекта https://github.com/dimaxz/active-table-project