array()); function __construct() { parent::__construct(); $this->load->helper(array('form', 'date')); $this->load->model('pages_model'); } // Auth private function authorise() { if($this->erkanaauth->try_session_login()) return true; redirect('/login'); return false; } function index() { //$this->authorise(); //$this->erkanaauth->set_role_access('temp', 'admin'); $this->view_data['page']['title'] = 'Kinsey Racing'; $this->view_data['page']['description'] = 'Kinsey Racing'; $this->view_data['page']['page_title'] = 'home'; $this->view_data['show_feature'] = 1; // Return from wordpress result array with ID, post_name, post_title, post_content $this->view_data['wp_preview'] = $this->pages_model->get_wordpress_preview(3,90); // Most recent post, truncate to 600 chars $this->view_data['tpl_inner'] = 'pages/home_inner.php'; $this->load->view('outer_tpl.php',$this->view_data); } // Holding Page function hold() { $this->view_data['page']['title'] = 'Will Kinsey Racing | Horse Racing Trainer William Kinsey' ; $this->view_data['page']['description'] = 'Kinsey Racing is the training yard for horses trained by William Kinsey' ; // Return from wordpress result array with ID, post_name, post_title, post_content $this->view_data['wp_preview'] = $this->pages_model->get_wordpress_preview(3,600); // Most recent post, truncate to 600 chars $this->view_data['tpl_inner'] = 'pages/hold_inner.php'; $this->load->view('outer_hold_tpl.php',$this->view_data); } function about() { //$this->authorise(); //$this->erkanaauth->set_role_access('temp', 'admin'); $this->view_data['page']['title'] = 'Kinsey Racing | About Will Kinsey'; $this->view_data['page']['description'] = ''; $this->view_data['page']['body_class'] = 'about'; $this->view_data['page']['page_title'] = 'About'; $this->view_data['page']['sub_title'] = 'Kinsey Racing, the story so far...'; //$this->view_data['page']['padding'] = 'no_padding'; //$this->view_data['show_feature'] = 1; $this->view_data['wp_preview'] = $this->pages_model->get_wordpress_preview(3,90); // Most recent post, truncate to 600 chars $this->view_data['tpl_inner'] = 'pages/about_inner.php'; $this->load->view('outer_tpl.php',$this->view_data); } function facilities() { //$this->authorise(); //$this->erkanaauth->set_role_access('temp', 'admin'); $this->view_data['page']['title'] = 'Kinsey Racing | Facilities at Peel Hall'; $this->view_data['page']['description'] = ''; $this->view_data['page']['body_class'] = 'facilities'; $this->view_data['page']['page_title'] = 'Facilities'; $this->view_data['page']['sub_title'] = 'Have a look around our facilities at Peel Hall'; /*$this->view_data['page']['padding'] = 'no_padding';*/ //$this->view_data['show_feature'] = 1; $this->view_data['tpl_inner'] = 'pages/facilities_inner.php'; $this->load->view('outer_tpl.php',$this->view_data); } function facilities2() { //$this->authorise(); //$this->erkanaauth->set_role_access('temp', 'admin'); $this->view_data['page']['title'] = 'Kinsey Racing | Facilities at Peel Hall'; $this->view_data['page']['description'] = ''; $this->view_data['page']['page_title'] = 'Facilities'; $this->view_data['page']['sub_title'] = 'Have a look around our facilities at Peel Hall'; $this->view_data['page']['padding'] = 'no_padding'; //$this->view_data['show_feature'] = 1; $this->view_data['tpl_inner'] = 'pages/facilities2_inner.php'; $this->load->view('outer_tpl.php',$this->view_data); } function privacy() { //$this->authorise(); //$this->erkanaauth->set_role_access('temp', 'admin'); $this->view_data['page']['title'] = 'Privacy Policy' ; $this->view_data['page']['description'] = 'Privacy | Kinsey Racing' ; $this->view_data['page']['body_class'] = 'privacy' ; $this->view_data['tpl_inner'] = 'pages/privacy_inner.php'; $this->load->view('outer_tpl.php',$this->view_data); } }

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/kinseyracing.co.uk/app/controllers/pages.php:1)

Filename: core/Common.php

Line Number: 442

404 Page Not Found

404 Page Not Found

The page you requested was not found.