Post by inmoon » Wed Sep 05, 2012 6:39 pm

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.
Last edited by inmoon on Thu Sep 13, 2012 9:22 pm, edited 1 time in total.

Newbie

Posts

Joined
Tue Dec 14, 2010 12:57 am

Post by pprmkr » Wed Sep 05, 2012 7:24 pm

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! ';
			}
?>

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 4 guests