Welcome Guest, Not a member yet? Register   Sign In
how to display an image?
#5

[eluser]InsiteFX[/eluser]
Load the CodeIgniter HTML_Helper.
Code:
$data = array();

$data['file_name'] = $file_name;

$this->load->vars($data);
$this->load->view('your_view');

// In your view.
<?php echo img('uploads/'.$file_name);?>
// gives <img src="http://site.com/uploads/picture.ext" />

InsiteFX


Messages In This Thread
how to display an image? - by El Forum - 03-20-2011, 11:48 AM
how to display an image? - by El Forum - 03-20-2011, 11:54 AM
how to display an image? - by El Forum - 03-20-2011, 03:54 PM
how to display an image? - by El Forum - 03-20-2011, 10:40 PM
how to display an image? - by El Forum - 03-20-2011, 10:52 PM
how to display an image? - by El Forum - 03-21-2011, 09:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB