How can detect the Store Admin logged in admin panel ( in frontend )?
With what the code?
Or via cookies or session?
Up through, show a message only for admin in frontend.
thanks.
Code: Select all
<?php
$this->load->library('user');
$this->user = new User($this->registry);
if ($this->user->isLogged()) {
// do your stuff
echo $this->user->getUserName().' is logged in! ';
}
?>
Who is online
Users browsing this forum: No registered users and 4 guests