Force User Login Before Css Is Displayed When Using Bootstrap With Yiibooster

Hi folks,

One of my sites was using a behavior with OnBeginRequest to force login prior to any of the site being displayed. This was when I was using Blueprint CSS and it worked fine. However, I have since switched to using Bootstrap by way or Yii Booster and the preload configuration is not seemingly loading the CSS first before the behavior is run.

Is there anyway to stop this? I don’t want any of the site displaying until the user is verified for security reasons.

Thanks in advance,

U4EA

Bootstrap is public and I don’t know why you want to ‘hide’ it. But here is an idea - make a separate layout for login with your public css only and after the user is authenticated you can use your main layout with all your custom staff.