php - Uploadify calling CodeIgniter controller multiple times

Solution:
You would not use 2 controller functions simultaneously, just one. That's not how CI works. So point your javascript to thenews/edit
controller function. In this function, you need to then include the code that does the actual upload as i'm not seeing it above. But first things first, correct your JS.
so instead of this:
'uploader' : '<?php echo site_url(); ?>admin/uploadify',
do this:
'uploader' : '<?php echo site_url(); ?>news/edit',
and add tonews/edit
your code from theadmin/uploadify
controller function.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: property [id] does not exist on this collection instance.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.