Welcome Guest, Not a member yet? Register   Sign In
PHP includes aren't working in CI
#7

[eluser]KeyStroke[/eluser]
Thanks Derek. This is just how I was hoping I could include components into my views.

However, it appreas that the code of the views I include can't see the variables of the the view they're being added to.

For example:
Code:
<?php
$date = '25/05/08';
// the 'something' page needs to use the $date variable, but gets an "Undefined Variable" notice
$this->load->view('includes/something');
How do I avoid that?


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



Theme © iAndrew 2016 - Forum software by © MyBB