macrowish / yii2-smoothstate
为 Yii2 提供的无侵入页面切换:http://smoothstate.com/
dev-master
2016-09-24 22:32 UTC
Requires
This package is not auto-updated.
Last update: 2022-01-12 07:03:19 UTC
README
为 Yii2 提供的无侵入页面切换:http://smoothstate.com/
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist macrowish/yii2-smoothstate "dev-master"
或者
"macrowish/yii2-smoothstate": "*"
将以下内容添加到您的 composer.json
文件的 require 部分中。
使用方法
扩展安装完成后,只需在任意视图文件中通过
<?php
use macrowish\widgets\SmoothState;
?>
<?php SmoothState::begin(); ?>
Dynamically loaded content here.
<?php SmoothState::end(); ?>
待办事项
- 允许进行 JS 自定义,例如 smoothState 选项、事件处理器等。