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

Hi,

What do you prefer calling other classes, using the namespace like new \App\Model\ModelName or with the function model('App\Model\ModelName') ?
I haven't used this function before and am wondering what is the best approach to this, for me namespaces have more logic (in my head) but maybe someone has an answer for this?
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