Magento - How to check in the frontend if admin is logged in

In Magento, I've tried different approaches just to check in the frontend if the admin is logged in. There are lots of codes I found in the net but they didn't work.

Well, the easiest approach is just this :

I used that in the custom router I created.

Now buy me some beer!


Popular posts from this blog

Magento: can't login to admin panel, can't add product to cart

Magento: How to fix "The requested URL /index.php was not found on this server" error