• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code reuse: wich is the best approach for sharing controllers and views between different projects?

#2
[eluser]Aken[/eluser]
If you are hosting all of these sites off of the same server / CI install, Packages might be useful for you.

The way I would set it up, the MY_Controller would have the logic for figuring out what website is being called, and then call all of that website's relevant files / info.

It really depends on your end goal, how much is and isn't shared between the websites. That's the nice thing about Packages, because they can contain configs, controllers, views, etc., all in individual folders for easy compartmentalization.


Messages In This Thread
code reuse: wich is the best approach for sharing controllers and views between different projects? - by El Forum - 07-16-2012, 07:10 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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