problem in form_validation using is_callable(), cannot passing data from controller |
I separate all processing data models in libraries, the model is only used to handle data from the database only and the controller is specialized to control requests.
I get a problem when processing data in library_models because of the limitations of calling methods in model_joins, so I tried experimenting so that it became a method below. controller: PHP Code: $this->form_validation->set_rules( libraries: PHP Code: public function check_role($email){ models: PHP Code: public function user_campaign($key, $value) but the results failed, because the above method does not return any values so that it displays the message "Trying to get property 'user_role' of non-object". please help me to solve this problem. |
Messages In This Thread |
problem in form_validation using is_callable(), cannot passing data from controller - by DELE - 04-15-2019, 07:00 PM
RE: problem in form_validation using is_callable() - by dave friend - 04-15-2019, 07:15 PM
RE: problem in form_validation using is_callable() - by DELE - 04-15-2019, 07:40 PM
RE: problem in form_validation using is_callable() - by dave friend - 04-15-2019, 08:10 PM
RE: problem in form_validation using is_callable() - by DELE - 04-15-2019, 09:49 PM
RE: problem in form_validation using is_callable() - by dave friend - 04-16-2019, 08:21 AM
RE: problem in form_validation using is_callable() - by DELE - 04-16-2019, 09:11 AM
|