/**
  * Marks as Done task from view page
  * @param $id - $id of task to mark as Done
  */
 public function done($id)
 {
     $id_to_mark_as_done = $id;
     $planner = new Model\Planner();
     $planner->markAsDone($id_to_mark_as_done);
     header('Location:http://mytest.me/my-mvc/planner/view/');
 }
Exemplo n.º 2
0
<?php

/**
 * Created by PhpStorm.
 * User: dev
 * Date: 22.09.15
 * Time: 12:14
 */
namespace View;

use Model;
$params = (include 'Conf/params.php');
$planner = new \Model\Planner();
?>
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Planner</title>
</head>
<body>
<h2>Today is <?php 
echo $date = date("F d, Y");
?>
</h2>
<div>
    <table class="">
        <tr>
        <col width="100">
        <col width="100">
        <col width="300">