Adjust views to use short image urls.
This commit is contained in:
parent
3de47410a5
commit
b9bce9cbe5
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ class Upload extends CI_Controller {
|
|||
|
||||
echo $this->image_lib->display_errors();
|
||||
|
||||
$message = array('type'=>'success','status'=>'Uploaded successfully', 'file'=>base_url('/view/specific/' . $file_name));
|
||||
$message = array('type'=>'success','status'=>'Uploaded successfully', 'file'=>base_url($file_name));
|
||||
}
|
||||
|
||||
echo json_encode($message);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div id="imageContainer" style="width: 960px;margin: auto;">
|
||||
<?php foreach($uploads as $upload) { ?>
|
||||
<div id="galleryContainer">
|
||||
<a href="<?php echo base_url('/view/specific/' . $upload->id); ?>"><img src="<?php echo base_url('/thumbs/' . $upload->id . $upload->extension); ?>" /></a>
|
||||
<a href="<?php echo base_url($upload->id); ?>"><img src="<?php echo base_url('/thumbs/' . $upload->id . $upload->extension); ?>" /></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue