PHP includes aren't working in CI |
[eluser]Unknown[/eluser]
I had a similar problem and a nice person in the IRC channel pointed me at the Django-like template inheritance helper (found here). Say if you have a view called 'base.php' with: Code: <html> and in your 'about.php' view you have: Code: <?php You can simply load the 'about.php' view and it will automatically inherit the html from base.php. Code: $vars['title'] = "About us"; Nice or what ![]() |
Messages In This Thread |
PHP includes aren't working in CI - by El Forum - 05-25-2008, 03:28 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 03:38 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 03:44 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 03:52 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 05:43 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 06:35 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 06:49 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 06:54 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 09:22 AM
PHP includes aren't working in CI - by El Forum - 05-25-2008, 10:30 AM
|