11

Today I had to load a javascript file by calling a controller and generating it from a twig template. I feel dirty.

Comments
  • 1
    That's more common than you think, I guess.
  • 0
    And How do you decide how to invoke THAT controller? Do you have a separate database configuration?
  • 0
    @asgs yes, is for including a compatibility feature in opencart, we need a modal, but that modal needs to work with all themes, and we need it working fast (no ajax for obtaining data)
Add Comment