sintret/yii2-todolist

Yii2 extension for To Do list plugin using adminlte template


Keywords
jquery, plugin, ajax, yii2, AdminLTE, todolist
License
MIT

Documentation

yii2-todolist

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();
        }
        
    }