Welcome Guest, Not a member yet? Register   Sign In
Accessing a custom object with instanceof
#8

(01-26-2021, 06:37 PM)baxterheinen Wrote: Ah, because it's not already an object, got it.

Why don't the docs cover this? They say the autoloader will instantiate it. 

https://codeigniter.com/user_guide/datab...sults.html

Incorrect example in the documentation.
The documentation uses the User class without a namespace, so just 'User' is passed as a parameter.
If the class uses a namespace, then it must also be specified.
Reply


Messages In This Thread
RE: Accessing a custom object with instanceof - by iRedds - 01-26-2021, 11:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB