mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-20 11:33:59 +00:00
Added some code for reminders but most of its commented out.
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user