Added some code for reminders but most of its commented out.

This commit is contained in:
James Cole
2014-11-17 20:18:14 +01:00
parent f69598c6aa
commit 36cbb3d71f
10 changed files with 188 additions and 117 deletions

View File

@@ -1,4 +1,5 @@
<?php
use FireflyIII\Exception\NotImplementedException;
/**
* Class ReminderController
@@ -7,11 +8,34 @@
class ReminderController extends BaseController
{
public function __construct() {
View::share('title','Reminders');
View::share('mainTitleIcon','fa-lightbulb-o');
}
/**
* @param Reminder $reminder
*/
public function show(Reminder $reminder)
{
var_dump($reminder);
throw new NotImplementedException;
// $subTitle = $reminder->title;
// $model = null; // related model.
//
// if(isset($reminder->data->model) && isset($reminder->data->type)) {
// switch($reminder->data->type) {
// case 'Test':
// break;
// case 'Piggybank':
// break;
// default:
// throw new FireflyException('Cannot handle model of type '.$reminder->data->model);
// break;
// }
// } else {
//
// }
//
// return View::make('reminders.show',compact('reminder','title','subTitle'));
}
}