<!-- Logic for the create page --> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { ?> <?php if ($formIsValid) { ?> <?php $notesRepo = new \abhijeet\NFS\FileNotesRepo(); $notes = new \abhijeet\NFS\Notes(); $notes->setSubject($notesSubject); $notes->setAuthor($notesAuthor); $notes->setBody($notesBody); $notes->setPriority($notesPriority); $notesRepo->saveNotes($notes); ?> <div class="container-fluid"> <!-- Review create page --> <h1> New note created </h1> <table class="table"> <caption> Review created note </caption> <tbody> <tr> <td width="100px;"><label> Subject: </label></td> <td><?php print $notesSubject; ?> </td> </tr> <tr>