CSS in DB

Hi all,

How to put css file in MYSQL DB and retreive it in layouts/main.php page based on PK of that table in DB??

Create a new table named

Theme

and set the values in it

i.e.

post_id=1

theme_id=1

post_id=2

theme_id=5

just an example

use relational object to retrieve the data of the theme and set it in layouts dynamically

i.e.

Create a component and in that component , have a function that will set values to the controller

then access these values inside of layout using

$this->css

and set it in the layout

Just an idea