Hi Everyone,
I want to show the current logged in user’s role name in the top-left of my theme and I have written a method which returns the name of the role of current logged in user. I do not understand in which controller I should place this method which will work in theme. I wrote that method in DefaultController.php but it works only for http://localhost/[my project name]/index.php/admin/default/index. When I trigger to other controller it gives error. Is there any place where I write methods for theme or any controller class for theme.
Thanks in advance