Editor with Laravel
Editor with Laravel
lunguc@hotmail.com
Posts: 20Questions: 6Answers: 0
Hi,
I have bought the editor 1.4.2 and I want to integrate it in Laravel. I'm working with Datatable.net. Is there any manual to point me how to do that?
Thanks.
This discussion has been closed.
Answers
Hi,
Editor's client / server communication protocol is documented in the manual here. Using it with Laravel you would need to either implement a suitable server-side environment for those requirements, or use the pre-built Editor PHP libraries alongside your Laravel code.
Regards,
Allan
Hi Allan,
I'm not able to use de editor. I only want to use the client side with my controller (server side).
I already have populate the datatable and I want to call the inline editor and next I want to submit the form. After, my controller will validate the data and save it the database.
When I try to call the editor I receive an error: "Uncaught Unable to automatically determine field from source. Please specify the field name"
I put my code to take a look, maybe you can help me.
Thanks.
This tech note explains what is causing the error and how to resolve it.
In this case the problem is being caused by the fact that you have
fields.name
set to a string, but the DataTable is using a default of an integer for each column's data since there is nocolumns.data
property specified.Using the
editField
option can resolve that, or usefields.data
as an integer.Allan