[eluser]Unknown[/eluser]
Please anybody can help. I am trying to build a gallery and when I try to get images of directory I get images thumbnail but there is one blank thumbnail. So how do I remove this thumbnail . Please can any body help me.
Code:
function get_images($sata) {
$this->load->helper('directory');
$files = directory_map($sata);
$files = array_diff($files, array('.', '..', 'thumbs'));
$images = array();
foreach ($files as $file) {
$images []= array (
'url' => base_url().'uploads/' . $file,
'thumb_url' => base_url(). 'thumbs/' . $file
);
}
vI have uploaded the screenshot. please Help me