Set inline CSS of layout from controller

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.

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 .