sintret / yii2-todolist
Yii2 extension for To Do list plugin using adminlte template
Installs: 8 070
Dependents: 3
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 4
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- php: >=5.3.0
- kartik-v/yii2-helpers: *
This package is not auto-updated.
Last update: 2024-12-11 09:02:44 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(); } }