Accessing a custom object with instanceof |
I have instantiated a new object from a class in my app/libraries folder as such:
PHP Code: // in controller PHP Code: // in controller method But when I pass $account to my model and check if it is an instance of LN_Account the conditional fails. PHP Code: // in controller method PHP Code: // in model How do I make LN_Account visible to my model? |
Messages In This Thread |
Accessing a custom object with instanceof - by baxterheinen - 01-25-2021, 11:36 PM
RE: Accessing a custom object with instanceof - by craig - 01-26-2021, 01:09 AM
RE: Accessing a custom object with instanceof - by baxterheinen - 01-26-2021, 11:35 AM
RE: Accessing a custom object with instanceof - by natanfelles - 01-26-2021, 04:32 PM
RE: Accessing a custom object with instanceof - by baxterheinen - 01-26-2021, 06:18 PM
RE: Accessing a custom object with instanceof - by iRedds - 01-26-2021, 06:34 PM
RE: Accessing a custom object with instanceof - by baxterheinen - 01-26-2021, 06:37 PM
RE: Accessing a custom object with instanceof - by iRedds - 01-26-2021, 11:19 PM
RE: Accessing a custom object with instanceof - by InsiteFX - 01-27-2021, 02:20 AM
|