Closed andranos closed 12 years ago
Nevermind, it's already fixed
Hi andranos, could you please tell me how u fixed that problem? i'm getting the same error for users but under customers it works fine. don't know where the problem is.
I have the same issue, have any one be kind to share a proper solution.
greetings
Oh Please tell me how to fix it. I'm stuck in here
Hi, I'm not sure about the problem because it's about a year ago. So if you can describe the problem maybe I can give you a solution.
I want to upload a document, I have a table name "Documents" controller DocumentController When I echo echo $this->Upload->edit('Document', $this->Form->fields['Document.id']); I recieve an error Notice (15): Undefined index: And I want to store that Document belong to a Lesson by set lesson_id. How can I do that
@anhlt If you post your view code it will be easier to assist you
It just. <?php echo $this->Upload->edit('Document', $this->Form->fields['Document.id']); ?> I still able to upload, but I don't know why it has a error like this. And I also want to set lesson_id of Document Model after upload finished. Any solution?
Ps : has nothing on edit action
@anhlt What does your $this->form->create() look like?
@anhlt Make sure your form->create() is for Document model.
Add to your form echo $this->Form->input('id');
That should fix your specific error.
You need the ID in your form so you can read it out as a field. The solution of destinydriven should fix the problem.
Hi
Its working fine under my localhost but when i upload it to my host server, it shows Notice (8): Undefined index: Notice (8): Undefined index: Recipe.id [APP\Plugin\Authake\View\recipes\edit.ctp, line 19] this is the code <?php echo $this->Upload->edit('Recipe', $this->Form->fields['Recipe.id']); ?>
thanks