• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
whats worng with this little function

#1
[eluser]runrun[/eluser]
this is a function inside controller, when i comment it out, the page loads normally, when i remove comment, the page is white(blank)

Code:
function _cropThumbnail($thumbName)
    {    
        $config['image_library'] = 'gd2';
        $config['source_image'] = FCPATH.'news_img/' . $thumbName;    
        $config['quality'] = '100%';
        $config['x_axis'] = 88 ;
        $config['y_axis'] = 66 ;
        $this->image_lib->initialize($config);
        if(!this->image_lib->crop()){ echo $this->image_lib->display_errors();}
    }

#2
[eluser]Tim Reynolds[/eluser]
Try having a look at your server logs.

If you are running MAMP like myself the logs are located at /Applications/MAMP/logs.

This should point you in the right direction.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.