From e5197f4092ab2e5949d63ca6fa43aaa77b6b5785 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 8 Dec 2016 21:01:33 +0100 Subject: [PATCH] removed faq --- app/Controllers/MetaController.php | 14 ---------- database/2016_12_08_205940_remove_faq.php | 34 +++++++++++++++++++++++ resources/views/yuuno/master.twig | 1 - resources/views/yuuno/meta/faq.twig | 28 ------------------- routes.php | 1 - 5 files changed, 34 insertions(+), 44 deletions(-) create mode 100644 database/2016_12_08_205940_remove_faq.php delete mode 100644 resources/views/yuuno/meta/faq.twig diff --git a/app/Controllers/MetaController.php b/app/Controllers/MetaController.php index 71c640e..256b120 100644 --- a/app/Controllers/MetaController.php +++ b/app/Controllers/MetaController.php @@ -85,20 +85,6 @@ class MetaController extends Controller return Template::render('meta/index'); } - /** - * Displays the FAQ. - * @return string - */ - public function faq(): string - { - // Get faq entries - $questions = DB::table('faq') - ->orderBy('faq_id') - ->get(); - - return view('meta/faq', compact('questions')); - } - /** * Search page. * @return string diff --git a/database/2016_12_08_205940_remove_faq.php b/database/2016_12_08_205940_remove_faq.php new file mode 100644 index 0000000..5a3efea --- /dev/null +++ b/database/2016_12_08_205940_remove_faq.php @@ -0,0 +1,34 @@ +drop('faq'); + } + + /** + * Reverse the migrations. + * @return void + */ + public function down() + { + $schema = DB::getSchemaBuilder(); + + $schema->create('faq', function (Blueprint $table) { + $table->increments('faq_id'); + $table->string('faq_shorthand', 255); + $table->string('faq_question', 255); + $table->text('faq_answer'); + }); + } +} diff --git a/resources/views/yuuno/master.twig b/resources/views/yuuno/master.twig index 4aa1614..dc6e806 100644 --- a/resources/views/yuuno/master.twig +++ b/resources/views/yuuno/master.twig @@ -210,7 +210,6 @@