Welcome Guest, Not a member yet? Register   Sign In
Tutorial File Upload Class Problem
#61

[eluser]davehedgehog[/eluser]
lol its the image variable I was having trouble fetching from the database earlier.....ironic huh.
#62

[eluser]davehedgehog[/eluser]
Ah hold on my bad, I also had a bit of code rezising the images before the uplooad , which apparently works perfect but it was that :/

Code:
$config['image_library'] = 'gd2';
   $config['source_image'] = $data['Image'];
   $config['new_image'] = './uploads/blog/last/';
   $config['create_thumb'] = 'FALSE';
   $config['maintain_ratio'] = 'TRUE';
   $config['width'] = '400';
   $config['height']  = '300';
  
   $this->image_lib->clear();
   $this->load->initialize($config);
   $this->image_lib->resize();  

   $config['image_library'] = 'gd2';
   $config['source_image'] = $data['Image'];
   $config['new_image'] = './uploads/blog/thumb/';
   $config['create_thumb'] = 'FALSE';
   $config['maintain_ratio'] = 'TRUE';
   $config['width'] = '36';
   $config['height']  = '36';

   $this->image_lib->clear();
   $this->load->initialize($config);
   $this->image_lib->resize();
  
   if ( ! $this->image_lib->resize())
   {
    echo $this->image_lib->display_errors();
    $this->session->set_flashdata('flashError', 'No smaller images stored :/');
   }
#63

[eluser]davehedgehog[/eluser]
I still cant get the image resize to work, even if I change the new source config, still get the conflict with ion auth :/

any idea why? this is the error~

An Error Was Encountered

The model name you are loading is the name of a resource that is already being used: ion_auth_model
#64

[eluser]TheFuzzy0ne[/eluser]
Where are you loading ion_auth_model? I suspect you might have it in ./application/config/autoload.php and you may also be loading it somewhere else.

It might be wise to search your application directory for "load->model('ion", and see what turns up.
#65

[eluser]davehedgehog[/eluser]
I have it in the autoload other than that only in the libraries Ion_Auth.php?
#66

[eluser]TheFuzzy0ne[/eluser]
As far as I can see, Ion Auth loads the models itself. All you need to do is load the library.
#67

[eluser]davehedgehog[/eluser]
yep :/




Theme © iAndrew 2016 - Forum software by © MyBB