Editor integration with searchbuilder

Editor integration with searchbuilder

phpshivlabphpshivlab Posts: 3Questions: 1Answers: 0
edited November 27 in Free community support

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

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    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

  • phpshivlabphpshivlab Posts: 3Questions: 1Answers: 0

    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?

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    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

  • phpshivlabphpshivlab Posts: 3Questions: 1Answers: 0

    @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 "")

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    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

Sign In or Register to comment.