sintret/yii2-todolist

Yii2 extension for To Do list plugin using adminlte template

Installs: 6 685

Dependents: 3

Suggesters: 0

Security: 0

Stars: 7

Watchers: 1

Forks: 4

Open Issues: 0

Language:JavaScript

Type:yii2-extension

v1.0.0 2015-01-18 05:34 UTC

This package is not auto-updated.

Last update: 2021-01-26 14:21:27 UTC


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