CodeIgniter Forums
Undefined variable: slideshow - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Undefined variable: slideshow (/thread-65406.html)

Pages: 1 2


RE: Undefined variable: slideshow - davy_yg - 06-22-2016

Hello,

I use another method to upload pictures.  Please help checking my codes?


I place this file to show on my website:

controllers/images/blog.jpg



controllers/cpages.php


PHP Code:
public function imageshow()
        {
            
        
$config['image_library'] = 'gd2';
        
$config['source_image'] = '/images/blog.jpg';
        
$config['create_thumb'] = TRUE;
        
$config['maintain_ratio'] = TRUE;
        
$config['width'        75;
        
$config['height'      50;

        
$this->load->library('image_lib'$config);

        
$this->image_lib->resize();    
        
        
$this->load->view('slideshow_images'); 
    
        } 


I wonder why I cannot show anything on the screen?

I already type this on my url:  http://127.0.0.1/CompanyProfileCI/index.php/cpages/imageshow

The picture does not appears.