From ba5c698215c7e6ae2fbe3b8ed96b6de711b43e7f Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Thu, 18 Aug 2011 01:28:37 +0100 Subject: [PATCH] Formatting tidy-up --- application/controllers/api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/api.php b/application/controllers/api.php index 397f17bc..a7e2e03a 100644 --- a/application/controllers/api.php +++ b/application/controllers/api.php @@ -5,7 +5,9 @@ class API extends CI_Controller { // Do absolutely nothing function index() { + header("Location: ".$this->config->item('base_url')); //load the model and get results + /* $this->load->model('logbook_model'); $data['data'] = array(); @@ -13,6 +15,7 @@ class API extends CI_Controller { //$this->load->view('layout/header'); $this->load->view('api/index', $data); //$this->load->view('layout/footer'); + */ } // FUNCTION: search() @@ -63,7 +66,6 @@ class API extends CI_Controller { Finally, once this has been done, each field name is translated to the MySQL column name. */ - function search() { // Load the API and Logbook models