[eluser]Tom Schlick[/eluser]
i can pass data such as userID (which i set) and can retrive it and set it with smarty tags without a problem. i did an initial test to see if it will pass data to a normal page without smarty and i had no luck.
here is the code i tried:
controller code:
Code:
<?php
class Blog extends Controller
{
function Blog()
{
parent::Controller();
//Load the language file
$this->lang->load('blog', $this->config->item('language_code'));
if(!$this->user_library->isLoggedIn())
{
redirect('user/login');
//log_message("debug", "USERNAME: logged in");
}
}
function test()
{
$this->session->set_flashdata('info', "Hello this is information you need to know");
$this->load->view('test.php');
}
}
?>
and the view:
Code:
<h1><?php echo $this->session->userdata('info');?></h1>
so it seems that it doesnt like to pass the data to any views? but it does get to the controllers and such...