In a YII work, I have an init() function which checks whether the session is set if not redirect to login page.
The problem is that the "login" action is also in the same controller, so it is creating an infinite loop. If I can get the method name in init() function, I can solve this issue.
How I can get the method name in init() function?