• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.