loading images in a view |
[eluser]junaids[/eluser]
hi..i have problem loading images to a view. most of code i m using is a copy fromforum here the controller Code: $data['css'] = $this->css; now i can load the css in the view like Code: <link href="<?php echo "$base/$css"; ?>" rel="stylesheet" type="text/css" /> but can not include any images. i have the code Code: <img src="$base/images/logo.gif" alt="" title="" width="176" height="111"> any idea how to do it?
[eluser]JoostV[/eluser]
There are no php tags around $base. Tried this? Code: <img src="<?php echo $base; ?>/images/logo.gif" alt="Place your alt text here" title="" width="176" height="111"> |
Welcome Guest, Not a member yet? Register Sign In |