title: Symfony: how to implement a search functionality on multiple modules?
body: <p>I have for example a module in my applications called 'Books'.
  Also I have several others modules in which I want to use a 'search a book' functionality (reuse the search form).</p>
  
  <p>How can I achieve that?</p>
  
  <p>I tried to make a component for this and use it in other modules templates, but I don't know how to return the found book id from it (I use some ajax, but no luck). Or maybe this is just a wrong approach.</p>
  
  <p>Any suggestions?
  Thanks.</p>