Header not appearing & Footer not correct |
I've followed the instructions in the Tutorial on the Static Page but the Header does not appear although the tab is labelled "CodeIgniter Tutorial" and the content of the Footer appears on the same line as the content of the Page.
Is there some obvious reason for this malfunction? ************* This is the content of my Pages.php - application/controllers/Pages.php Code: <?php Code: <html> Code: <em>© 2014</em> Code: $route['default_controller'] = 'pages/view'; And this is the result; Home Hello World! © 2014 And this is the other URL http://localhost/MyProject/index.php/pages/view/about And this is the result; About Hello World! © 2014 I've checked every page numerous times, tried re-booting, and tried another browser, all to no avail. Can somebody explain where I'm going wrong?
I created a file at application/views/pages/CodeIgniter Tutorial.php
and changed Code: public function view($page = 'home') Code: public function view($page = 'CodeIgniter Tutorial') in Pages.php and changed Code: <em>© 2014</em> Code: <p><br><br><em>© 2014</em></br></br></p> in footer.php I can achieve close to my expectations and now realise my expectations were far too much for a simple piece of coding. If the CodeIgniter Tutorial was amended accordingly it would be much easier to understand. |
Welcome Guest, Not a member yet? Register Sign In |