Editor integration with searchbuilder
Editor integration with searchbuilder
phpshivlab
Posts: 3Questions: 1Answers: 0
Is it possible to integrate the editor with Searcbuilder only? There would be no need to add Crud, and the search builder serverside would work without developing custom logic.
Basically, can the editor manage the searchbuilder serverside without any specific logic for searching?
Answers
Sure. In the server-side script, add
->write(false)
to make sure that someone doesn't try to send write commands to the script!See this blog post for some more information on using the Editor server-side libraries for server-side processing, without the CRUD aspects.
Allan
With this, I don't need to develop a custom logic on server-side for the searchbuilder.
And will it work for the Laravel framework?
If you are using our server-side PHP libraries, yes. Note that they are framework agnostic - they don't use any Laravel specific features - they are just plain PHP and would sit alongside Laravel. You could set up routes in Laravel which would call our PHP libraries, but they wouldn't use the Laravel database connection, instead creating their own (unless you can get a PDO connection from Laravel?).
Allan
@allan
Does the editor manage the custom searchbuilder server-side process without custom logic for search?
(https://datatables.net/forums/uploads/editor/b4/ck8ni5ju7jqu.png "")
No - if you want to add a custom search builder condition you'd need to add the logic for that condition to the server-side scripts.
Allan