Is the template folder needed for the tutorial? |
Hi,
In the CodeIgniter tutorial, specifically at https://www.codeigniter.com/userguide3/t...pages.html , the instructions say to create the page header and footer in the ../application/views/templates folder. , it doesn't mention creating the templates folder. It just says to put the files in that folder. The problem is that the CodeIgniter 3 distribution doesn't have a templates folder. It has only the parent folder, ../application/views So the directive on that page, to point the browser to [your-site-url]index.php/pages/view , doesn't work. It returns a 404. I assume it's because CodeIgniter isn't using that templates folder, where the header and footer are located. It also returns a 404, if I copy the header.php and footer.php files from the templates folder back into it's parent views folder. Summary, long story short: I think the tutorial is mistaken, when it instructs the student to using the ../views/templates folder. Regards, |
Messages In This Thread |
Is the template folder needed for the tutorial? - by IgniterExplorer - 02-04-2019, 09:16 AM
RE: Is the template folder needed for the tutorial? - by ciadmin - 02-04-2019, 10:46 AM
RE: Is the template folder needed for the tutorial? - by IgniterExplorer - 02-04-2019, 10:58 AM
RE: Is the template folder needed for the tutorial? - by ciadmin - 02-04-2019, 01:30 PM
RE: Is the template folder needed for the tutorial? - by IgniterExplorer - 02-04-2019, 01:49 PM
RE: Is the template folder needed for the tutorial? - by ciadmin - 02-04-2019, 01:59 PM
|