Yii Framework Forum: Set inline CSS of layout from controller - Yii Framework Forum

Jump to content

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

Set inline CSS of layout from controller Rate Topic: -----

#1 User is offline   minaxis 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 29-August 11

Posted 29 November 2011 - 09:41 PM

Hi, how would you set the inline CSS of your layout from a controller action? The CSS would be a cell pulled from a SQL table row.
0

#2 User is offline   yiqing95 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 586
  • Joined: 27-December 10
  • Location:china

Posted 29 November 2011 - 10:53 PM

sure ! refer to doc register your css text if you want every page use it ,may be you should do the css outputting in filter or CController::beforeAction method .
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