Guest User

Untitled

a guest
Dec 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function showImages(){
  2. $this->load->helper('file');
  3. $images = get_filenames($_SERVER['DOCUMENT_ROOT'].IMG_PATH.'/news/');
  4. foreach ($images as $image){
  5. echo "<img src=\"".IMG_PATH.'/news/'.$image."\" />";
  6. echo "<br />";
  7. }
  8. }
Add Comment
Please, Sign In to add comment