Welcome Guest, Not a member yet? Register   Sign In
Namespace or function?
#2

Depends on your needs:

1. If you need an always fresh instance, you can use the "new" keyword.
2. If you need the shared instance, you can use the model function.
3. Alternative call for 1, you can also use the model function but passing false as 2nd argument.
Reply


Messages In This Thread
Namespace or function? - by superior - 07-21-2021, 12:59 AM
RE: Namespace or function? - by paulbalandan - 07-21-2021, 03:49 AM
RE: Namespace or function? - by MGatner - 07-21-2021, 05:50 AM
RE: Namespace or function? - by superior - 07-21-2021, 06:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB