Secure Site like AdminSite in CMS-s

Hi, I’m new to Yii PHP framework and I dont know as I should secure the site by login … I want create something or exactly same as classic CMS AdminSite where i must login before i see any content. I have currently generated WebApp using “Getting Started”, joined DB, and (M.V.C.) CRUD genereted with Gii. I create and use own theme but i dont know what now… next step how to secure completly this App ? or what can i delete from generated Site and redirect to some secured place…

The fastest way to implement those functions i think is to use users and rights extensions. You will get registration, login etc forms and role based auth system right from the box. You may write all this by yourself, but if you want to get fast result do some research on this extensions.