Welcome Guest, Not a member yet? Register   Sign In
Image Resizing Questions/Problems
#11

[eluser]Paul Skinner[/eluser]
[quote author="Randy Casburn" date="1215823922"]Please note the edits to the previous post. I forgot the put $this->config in the calls to the image lib function.

Randy[/quote]

I noticed the edits, thanks.

The code you supplied is erroring for me.

Code:
$this->config['source_image'] = $f;

is apparently causing it.

"Message: Undefined variable: f"

I'm also getting:
"Message: Undefined property: Test::$load"

for the line:
Code:
$this->load->helper('file');
#12

[eluser]Randy Casburn[/eluser]
Yes, of course. I did not look thoroughly enough.

1) Let's take
Code:
$this->config['source_image'] = $f;
first. If you look at the code again, $f is not even declared until you enter the foreach() loop. So you'll need to move that down into the foreach() loop. Didn't catch that one. Thanks.

2) Right. Didn't mean for you to use this verbatim. Thought you would incorporate into your current controller. If you're going to extend CI's Controller Class, you'll need include this in the constructor:

Code:
parent::Controller();


Randy




Theme © iAndrew 2016 - Forum software by © MyBB