Hi,
I have a little search form on my homepage with a html select using database data. It shows categories.
Therefore I created a Helper which does TableRegistry to the table holding the data and query the data. This way I can reuse the call in any view at any time.
But now, I need to update the html select based on a onChange Event via Ajax.
And I wonder what will be the solution for this in order to avoid an replication of code.
To call ajax I need a function in a controller.
But I can’t call a helper from a controller right?
I am stuck here … please advice the proper way of doing this…
I can’t imagine that I am the first person with such an isseu