I doesnt work in IE,Opera either, i use firefox.
ok, so none of these browsers display correctly the message
In the http://eple.hib.no/hibiscus/index.php/admin page i get the flashmessages, but when i login to the backend its nothing.
I can’t see any flash messages in the backend if i stick with the original setup.
If i hardcode your code without the div tag i get the output out. (but i really dont want to hardcode that into every view file)you don’t have to modify all the files, since the “flash message div snippet” only needs to be in the content.php file
could you just show us the CI-url (controller/function/params) and the html source code that you get, where you think the flash message should appear?
Okey this is the controller code:
function slett($id)
{
$this->kategorim->slettKategori($id);
//set a flash message
$msg = $this->db->affected_rows().$this->lang->line('FAL_user_deleted');
$this->db_session->set_flashdata('flashMessage', $msg, 1);
redirect('admin/kategoric', 'location');
}
MODEL:
function index(){
$data['heading']='Admin Console home';
$data['action']='Administrer kategorier';
//['content']="<p>Aministrer meny!</p>";
$data['page'] = 'FreakAuth_light/template_admin/kategori/kategoriv';
$data['sql'] = $this->kategorim->hentKategori();
$this->load->vars($data);
$this->load->view($this->config->item('FAL_template_dir').'template_admin/container');
}
function slettKategori($id)
{
$this->db->where('idKategori', $id);
$this->db->delete('kategori');
HTML FROM THE VIEW:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>hibiscus Administration Console » Admin Console home</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Daniel Vecchiato 4webby.com' />
<meta name='description' content='Administration console' />
<style type='text/css' media='all'>@import url('http://eple.hib.no/hibiscus/public/css/admin_console.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='http://eple.hib.no/hibiscus/public/css/adminconsole.css' />
</script>
</script>
</script>
</script>
</script>
</script>
</script>
</head>
<body>
<!-- START NAVIGATION -->
<div id="header">
<div class="back_website">
[ <a href="http://eple.hib.no/hibiscus/index.php" title="Til Hjemmeside">Til Hjemmeside</a> ]
</div>
<div class="login">
<a name="top"></a>
welcome hibiscus [ <a href="http://eple.hib.no/hibiscus/index.php/auth/logout.html" title="Logout">Logout</a> ] </div>
</div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>hibiscus Administration Console</h1></td>
</tr>
</table>
</div> <div id="navlist">
<ul id="navlist">
<li><a href="http://eple.hib.no/hibiscus/index.php/admin.html" title="Journalist Meny">Journalist Meny</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/admins.html" title="administrators">administrators</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/users.html" title="users">users</a></li>
<li id="active"><a href="http://eple.hib.no/hibiscus/index.php/admin/kategoric.html" title="kategori">kategori</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/meny.html" title="Statisk meny">Statisk meny</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/statisk.html" title="Statiske sider">Statiske sider</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/tagc.html" title="Under kategorier">Under kategorier</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/nyhet.html" title="Nyhet">Nyhet</a></li>
<li><a href="http://eple.hib.no/hibiscus/index.php/admin/lastOppAnnonse.html" title="Annonser">Annonser</a></li>
</ul>
</div>
<br clear="all" />
<!-- START CONTENT -->
<div id="content">
<div id="flashMessage" style="display:none;">
1 user successfully deleted! </div>
<h2>Administrer kategorier</h2>
<form action="http://eple.hib.no/hibiscus/index.php/admin/kategoric/leggtil.html" method="post"><input type="submit" name="Add" value="Legg til kategori" class="submit" id="submit" />
</form>
<table>
<tr>
<th scope="col">Kategori navn</th>
<th scope="col">Vis i Meny</th>
<th scope="col">Edit/Slett</th>
</tr>
<tr class="center">
<td>
Sport </td>
And some more..
As you see the flash message is there.. but it wont display..
