PHP code example of hiicup / layui-form
1. Go to this page and download the library: Download hiicup/layui-form 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/ */
hiicup / layui-form example snippets
<form class="layui-form" action="">
{!! Layui::input("title","标题") !!}
{!! Layui::bigInput("alias","副标题") !!}
{!! Layui::uploadOneImg("img") !!}
{!! Layui::selectSearchText('cid',["西安","北京"],"分类") !!}
{!! Layui::checkbox("state",1,"立即上架") !!}
{!! Layui::textarea("info",'摘要') !!}
{!! Layui::ueditor("content","内容") !!}
{!! Layui::submit() !!}
</form>