Stuck at the second hurdle |
[eluser]CodeIgNewbie[/eluser]
I've managed to get Code Igniter installed (which is an achievement), but following the tutorial "Tutorial − Static pages" I find that I can't get any page to render. I've created the header and footer files, and the home and about files (yes, all in the right directories), but nothing shows in http://www.trainstormbeta.co.uk/ci/index.php/pages/view I think my main concern is the code: 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); } Where should this go?? I'm really confused. Sorry for the basic nature of this issue, but until I know what's going on, I'm just stuck! |
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
|