fufudao/yii2-weui

为fufudao ltd.提供的weui组件

安装: 12

依赖: 0

建议者: 0

安全: 0

星星: 1

观察者: 1

分支: 0

开放问题: 0

语言:JavaScript

1.0 2017-05-25 07:38 UTC

This package is not auto-updated.

Last update: 2024-09-15 02:52:03 UTC


README

WeUI for Yii 2

为Yii2封装weui组件,让微信开发更简单

本组件是为车卡通微信会员管理系统而开发的,

![项目主页]https://github.com/fufudao/yii2-weui][a href="http://www.chekatong.cn" rel="nofollow noindex noopener external ugc">![系统主页]http://www.chekatong.cn]

作者

fufudao anu-zhang nuowei000

安装

通过Composer安装

通过composer安装是这个扩展的首选方式。

运行以下命令

php composer.phar require fufudao/yii2-weui "~1.0"

or for the dev-master

php composer.phar require fufudao/yii2-weui "1.x-dev"


Or, you may add

"fufudao/yii2-weui": "~1.0"


to the require section of your `composer.json` file and execute `php composer.phar update`.

Example
------------
use fufudao\weui\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;

use fufudao\weui\ActiveForm;


<?php $form = ActiveForm::begin([
	'method'=>'GET',
	'action'=> Html::getUri(),
	]); ?>

<?php
echo $form->cells('title');
echo $form->beginCells(['class'=>['weui-cells_form']
]);
echo $form->field($searchModel,'cardNO')->textInput(['maxlength'=>true,'required'=>true,'pattern'=>"REG_IDNUM",'placeholder'=>"输入你的身份证号码",'emptytips'=>"请输入身份证号码",'notmatchtips'=>"请输入正确的身份证号码"])->label('发发');

echo $form->endCells();
?>
<span class="action">
<?= Html::submitButton(Html::t('sys','query'),['class'=>'button white']);?>
</span>
<?php ActiveForm::end() ?>