PHP code example of themismin / dcat-extension-plus
1. Go to this page and download the library: Download themismin/dcat-extension-plus 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/ */
themismin / dcat-extension-plus example snippets
$form->selectCreate('department','部门')
->options(Department::class)
->ajax('/api/departments') // 必须使用 api 方式取选项列表,格式同 select 字段的使用方法
->url('/departments/create') // 异步打开的页面,这里是部门创建的页面 url
->