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
Post a Comment