Welcome Guest, Not a member yet? Register   Sign In
Image Processing Header Problem When Loading Model
#1

[eluser]Unknown[/eluser]
I am using codeigniter to dynamically resize images, but I have run into problems when using models.

I tried putting all of the code which processes the resizing into a model, but I just get PHP's cannot resend header errors. If I put all of the resize code in the controller it works perfectly, but due to my specific usage results in duplicated code and makes the controller a bit of a mess.
#2

[eluser]jedd[/eluser]
Hello alexduncan and welcome to the CI forums.

It sounds like you're trying to output stuff in your model - once you stop doing that, life becomes easier (well, you tend to stop getting headers already sent errors).

Can I suggest you post your code, so that the cognoscenti around here can cast judgement ^H^H^H^H... give some advice on your functions and approach.




Theme © iAndrew 2016 - Forum software by © MyBB