php - CodeIgniter - pass variables to CSS -


i'm rewriting website on code igniter, , need load external ttf. mysql db points path ttfs. can pass somehow these variables css , make foreach loop 'loads' these fonts.

i tried

$this->load->vars($data); 

you need understand how retrieve data db , how display them: http://codeigniter.com/user_guide/database/index.html luck

edit: need that: after have retrieved links database , let's called them $ttf_links

 <?php            foreach($ttf_links $link){         echo "<link rel='stylesheet' type='text/css' href={$link['row_name']} media='screen' />"     }     ?> 

and call fonts need in css


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -