Welcome Guest, Not a member yet? Register   Sign In
Stuck at the second hurdle
#4

[eluser]soup7[/eluser]
i did not see your 'extends' portion of your pages.php file you pasted...

the pages.php file (in your controller dir.) should be... (all of this

<?php

class Pages extends CI_Controller {

public function view($page = 'home')
{
if ( ! file_exists('application/views/pages/'.$page.'.php'))
{
// Whoops, we don't have a page for that!
show_404();
}

$data['title'] = ucfirst($page); // Capitalize the first letter

$this->load->view('templates/header', $data);
$this->load->view('pages/'.$page, $data);
$this->load->view('templates/footer', $data);
}
}
?>


Messages In This Thread
Stuck at the second hurdle - by El Forum - 02-25-2013, 07:51 AM
Stuck at the second hurdle - by El Forum - 02-25-2013, 10:59 AM
Stuck at the second hurdle - by El Forum - 02-25-2013, 11:33 AM
Stuck at the second hurdle - by El Forum - 02-25-2013, 11:56 AM
Stuck at the second hurdle - by El Forum - 02-25-2013, 12:09 PM
Stuck at the second hurdle - by El Forum - 02-25-2013, 01:28 PM
Stuck at the second hurdle - by El Forum - 02-25-2013, 02:01 PM
Stuck at the second hurdle - by El Forum - 02-26-2013, 05:17 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 06:12 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 06:17 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 09:24 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 09:41 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 09:43 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 09:47 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 10:12 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 10:16 AM
Stuck at the second hurdle - by El Forum - 02-26-2013, 10:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB