[eluser]Tom Schlick[/eluser]
ok now i am logged in so i have a session and i tried this and it didnt work
Code:
<?php
class Dashboard extends Controller
{
//Constructor
function Dashboard()
{
parent::Controller();
//Load the language file
$this->lang->load('dashboard', $this->config->item('language_code'));
}
//Default function
function index()
{
$this->session->set_userdata('info', 'testing... testing...');
$this->template_library->load('user/dashboard_stage.tpl', 'user', 'user/user_lr.tpl');
}
}
?>
here is the notice file
Code:
{{if $session->flashdata('good')}}
<div class="notice_green">{{$session->flashdata('good")}}</div>
{{elseif $session->flashdata('error')}}
<div class="notice_yellow">{{$session->flashdata('error")}}</div>
{{elseif $session->flashdata('bad')}}
<div class="notice_red">{{$session->flashdata('bad")}}</div>
{{elseif $session->userdata('info')}}
<div class="notice_blue">{{$session->flashdata('info")}}</div>
{{/if}}