Method chaining onto $this->load->model |
Used to be in CI2 I could do this:
$this->load->model('cat_model')->meow(); Was that bad practice? Because it seems like CI3 is making me separate these: $this->load->model('cat_model'); $this->cat_model->meow(); Or am I doing something wrong in CI3 (PHP 5.4) ? |
Messages In This Thread |
Method chaining onto $this->load->model - by seanloving - 06-19-2016, 03:45 PM
RE: Method chaining onto $this->load->model - by knightar - 06-20-2016, 11:52 PM
|