I am trying to create my own login page for my webapp.
I created AdminRecord model which is responsible for admin record storage and login/logout action.
I copy the login function from LoginForm model to AdminRecord and the actionLogin of SiteController to AdminRecordController.
Also copied the login form from site. After I changed the login button from site/login to adminRecord/login it was still not working, redirected to site/login again. What I have missed to change?
Thank you. But this is not really what I want. I want a customize login to replace the login that generated by Yiic. And I just want to use my own AdminRecord model for the login action instead of the LoginForm model. But when I try to go to the customize login page which URL is adminRecord/login, it redirects me to the the original one (site/login). This makes me confused.