简体   繁体   English

分离图像和代码生成器的上传和处理时出错

[英]Error while separating uploading and processing of image, codeigniter

does anyone know why im getting this error? 有谁知道为什么我会收到此错误? 'PHP Fatal error: Call to undefined method Site_model::get_images()' “ PHP致命错误:调用未定义的方法Site_model :: get_images()”

entire model: http://pastebin.com/nKwEgjP8 controller: http://pastebin.com/fWpbiCWQ 整个模型: http : //pastebin.com/nKwEgjP8控制器: 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? process_image()以前在do_upload()中,我试图将它们分开,有人想出什么来吗? 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() 更新了带有}的控制器,其更正为: pastebin.com/6Cxq1BWJ,现在它说从do_upload()调用process_image()时未定义

Well, problem is that you actually moved everything with and after the do_upload() method out of the Site_model class. 好吧,问题在于您实际上使用do_upload()方法及其后的所有内容将do_upload()移出了Site_model类。 And the rest (including get_images() has been moved inside the do_upload() function. 而其余的(包括get_images()已被移动内部do_upload()函数。

It's pretty must just a mess - the problem is that your curly brackets haven't been placed properly. 一定是一团糟-问题是您的大括号没有正确放置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM