Welcome Guest, Not a member yet? Register   Sign In
A Simple Forum Software built on CI4
#15

phpforever2017 no worries. Most likely because it's still under development and not massively optimized Smile They are both used separately, and don't have usage that would conflict with the other. To optimize, though, we'd probably want someplace that created the user model and made it available to both of those locations. This could be most easily done as a "service" that cached the instance and passed it along.

Most of the time I would create that model and pass it along to any libraries that need it, but the Auth libs are used prior to the controller. Might take a look at a bit of refactoring, though, now that you've pointed it out to me Smile
Reply


Messages In This Thread
RE: A Simple Forum Software built on CI4 - by kilishan - 07-24-2017, 11:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB