Old way of using classes and CI's way - Confused |
I have been trying to improve my code by sticking to OOP concepts. As you can see below my code is using a user class and passing that user class to the models class.
In code igniter it would be done like this, but this isn't the case since it just gives me an error because of the parameters. PHP Code: $this->load->library('User'); My code below: PHP Code: $params = array('forename' => $_forename, 'surname' => $_surname, 'dob' => $_dob, 'address' => $_address, 'telephone' => $_telephone, 'email' => $_email, 'password' => $_password); |
Messages In This Thread |
Old way of using classes and CI's way - Confused - by dreamweaver - 12-27-2018, 04:45 PM
RE: Old way of using classes and CI's way - Confused - by ciadmin - 12-27-2018, 05:14 PM
RE: Old way of using classes and CI's way - Confused - by dreamweaver - 12-28-2018, 12:49 AM
|