Welcome Guest, Not a member yet? Register   Sign In
Problem loading external view
#5

[eluser]xzela[/eluser]
Actually, I have an interesting update regarding this issue.
If I change the location of the header.php file from:

Code:
./system/application/views/_global/
to:
Code:
./system/application/views/
and update the main_view.php file to reflect the changes:
Code:
<?php
...
    $this->load->view('header');
...
?>
it actually works!

In addition to this, changing the $this->load->view from:
Code:
$this->load->view('_global/header');
to:
Code:
include '_global/header.php';

will also work.

So my question now is: Why wont the $this->load->view('_global/header') load when it's within a sub-folder in this particular case? Am I not specifying a top level directory or something?

Let me know what you guys think,

Thanks for the help so far.


Messages In This Thread
Problem loading external view - by El Forum - 11-07-2008, 09:49 PM
Problem loading external view - by El Forum - 11-08-2008, 07:44 AM
Problem loading external view - by El Forum - 11-08-2008, 02:16 PM
Problem loading external view - by El Forum - 11-08-2008, 02:38 PM
Problem loading external view - by El Forum - 11-10-2008, 12:33 PM
Problem loading external view - by El Forum - 11-10-2008, 12:45 PM
Problem loading external view - by El Forum - 11-10-2008, 01:06 PM
Problem loading external view - by El Forum - 11-10-2008, 01:12 PM
Problem loading external view - by El Forum - 11-10-2008, 01:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB