Templates |
[eluser]Perkin5[/eluser]
No, I can assure you I'm starting with a clean install of CI and following a tutorial by Jeffrey Way of Nettuts Plus - http://www.youtube.com/watch?v=gvGymDhY49E - if you're interested. It's very simple. I have a controller called site.php with a function: Code: function contact_us() I also have views called template.php and contact_us.php.The template view includes the statement: Code: $this->load->view($content); if I go to the url http;//localhost/sitefolder/index.php/site/contact_us I load the template view as you would expect and the data from $content is displayed as you would expect, the data having been passed to the template view. What's puzzling me is how CI knows that the value 'contact_us' refers to the contents of the Contact_us view. It works in Jeffrey Way's tutorial and it works on my computer but why? |
Messages In This Thread |
Templates - by El Forum - 07-12-2011, 11:53 AM
Templates - by El Forum - 07-12-2011, 08:02 PM
Templates - by El Forum - 07-12-2011, 08:42 PM
Templates - by El Forum - 07-13-2011, 02:18 AM
Templates - by El Forum - 07-13-2011, 02:53 AM
Templates - by El Forum - 07-13-2011, 04:36 AM
Templates - by El Forum - 07-13-2011, 04:42 AM
Templates - by El Forum - 07-13-2011, 05:02 AM
Templates - by El Forum - 07-13-2011, 02:48 PM
Templates - by El Forum - 07-13-2011, 03:01 PM
Templates - by El Forum - 07-13-2011, 03:16 PM
|