Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showImages(){
- $this->load->helper('file');
- $images = get_filenames($_SERVER['DOCUMENT_ROOT'].IMG_PATH.'/news/');
- foreach ($images as $image){
- echo "<img src=\"".IMG_PATH.'/news/'.$image."\" />";
- echo "<br />";
- }
- }
Add Comment
Please, Sign In to add comment