sintret/yii2-todolist
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sintret/yii2-todolist
包简介
Yii2 extension for To Do list plugin using adminlte template
README 文档
README
yii2 to do list using adminlte template
you can preview in http://sintret.com/adiadrian with username : kasir password : jakarta
create table todolist like these following :
CREATE TABLE `todolist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `status` tinyint(1) DEFAULT '0', `params` text, `createDate` datetime DEFAULT NULL, `updateDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB;
in your view , you have to set url and relations for User like this following code :
\yii\helpers\Url::to(['/ajax/todolist'])
]);
?>
in controllers :
public function actionTodolist() {
if(isset($_POST)){
$model = new \sintret\todolist\models();
$model->post = $_POST;
echo $model->send();
}
}
统计信息
- 总下载量: 8.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-17