Welcome Guest, Not a member yet? Register   Sign In
JQuery and HMVC
#1

[eluser]Patrick Reck[/eluser]
Hello!

I feel like I've learned enough backend development in CI now, and want to implement some JQuery in my HMVC CI code.

What would be a good place to put this code?
#2

[eluser]Otemu[/eluser]
This depends how you want to setup your site and you could have it in a number of ways:

The easiest method is just to dump all your jquery into the view of your module, you could even link js source files there, however this is probably not the best method and could become hard to maintain.

Load the js files and codes within the master page, could even use a js bundle technique.

You could have an asset module that handles which js files to loaded depending on which section the user is on.





Theme © iAndrew 2016 - Forum software by © MyBB