Use anything as a rule and $this->some_model issue |
UPDATE:
I tested again an it seems to be working perfectly if you call a validation array too. ![]() The only difference with my live example (which throws 'T_VARIABLE' parse error on $this) is that I assign my validation array (cfr. MY_Model - L. Ezell) as the property $validation_rules at the beginning of my extending child class. PHP Code: // eg. Now I found this thread: 'Can't concatenate on an array' and the proposed solution was that you have to assign such arrays (containing concanations and even methods starting with $this->) in a method... So I changed my code (assigned the array in the constructor) to: PHP Code: Class User_model extends MY_Model And YES: the problem was solved ... Does anyone has an explanation for this? Best regards, Zeff |
Messages In This Thread |
Use anything as a rule and $this->some_model issue - by Zeff - 01-31-2018, 07:56 AM
RE: Use anything as a rule and $this->some_model issue - by Elias - 01-31-2018, 08:24 AM
RE: Use anything as a rule and $this->some_model issue - by skunkbad - 01-31-2018, 05:56 PM
RE: Use anything as a rule and $this->some_model issue - by Zeff - 02-01-2018, 03:39 AM
RE: Use anything as a rule and $this->some_model issue - by Zeff - 02-02-2018, 05:40 AM
RE: Use anything as a rule and $this->some_model issue - by jreklund - 02-02-2018, 06:33 AM
RE: Use anything as a rule and $this->some_model issue - by Zeff - 02-02-2018, 06:51 AM
RE: Use anything as a rule and $this->some_model issue - by b126 - 02-21-2019, 04:02 AM
RE: Use anything as a rule and $this->some_model issue - by InsiteFX - 02-21-2019, 09:14 AM
|