Welcome Guest, Not a member yet? Register   Sign In
Is the template folder needed for the tutorial?
#1

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,
Reply


Messages In This Thread
Is the template folder needed for the tutorial? - by IgniterExplorer - 02-04-2019, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB