Welcome Guest, Not a member yet? Register   Sign In
Dynamic content in the template file
#10

[eluser]Kamy[/eluser]
It is set ! I noticed here in the forum I made the mistake of not setting it.

Code:
public function index()
    {
    $data['sidemenu'] = 'Whatever';
    $this->load->vars($data);
    $this->load->view('test_view');  
    }


When I browse to that page directly, like : http://localhost/index.php/test
The page and the data display properly.

But when I try to display $data within the template file it fails. It doesn't get recognized!


Messages In This Thread
Dynamic content in the template file - by El Forum - 03-29-2011, 02:48 PM
Dynamic content in the template file - by El Forum - 03-30-2011, 04:17 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 08:52 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 09:15 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 09:54 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 11:38 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 11:49 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 11:59 AM
Dynamic content in the template file - by El Forum - 03-30-2011, 12:01 PM
Dynamic content in the template file - by El Forum - 03-30-2011, 12:04 PM
Dynamic content in the template file - by El Forum - 03-30-2011, 12:09 PM
Dynamic content in the template file - by El Forum - 03-30-2011, 12:18 PM
Dynamic content in the template file - by El Forum - 03-30-2011, 12:23 PM
Dynamic content in the template file - by El Forum - 03-31-2011, 04:31 PM
Dynamic content in the template file - by El Forum - 03-31-2011, 07:24 PM
Dynamic content in the template file - by El Forum - 03-31-2011, 07:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB