Yii Framework Forum: Force User Login Before Css Is Displayed When Using Bootstrap With Yiibooster - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Force User Login Before Css Is Displayed When Using Bootstrap With Yiibooster Rate Topic: -----

#1 User is offline   U4EA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 273
  • Joined: 04-November 12

Posted 16 April 2014 - 06:03 PM

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
0

#2 User is offline   Gogo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 37
  • Joined: 17-May 12
  • Location:Sofia

Posted 17 April 2014 - 03:24 AM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users