分离上传和处理图像,codeigniter时出错

does anyone know why im getting this error? 'PHP Fatal error: Call to undefined method Site_model::get_images()'

entire model: http://pastebin.com/nKwEgjP8 controller: http://pastebin.com/fWpbiCWQ

process_image() was previously within do_upload() im trying to make them separate, anyone have an idea of what's up? all syntax checks say that's fine

updated controller with }'s corrected: pastebin.com/6Cxq1BWJ it's now saying process_image() is undefined when its called from do_upload()

Well, problem is that you actually moved everything with and after the do_upload() method out of the Site_model class. And the rest (including get_images() has been moved inside the do_upload() function.

It's pretty must just a mess - the problem is that your curly brackets haven't been placed properly.