How to extend the Controller core class |
Ignore the $params part. That reply was 2.5 years old and things have changed. CodeIgniter's controller doesn't use the constructor anymore.
To explain that part, though, using the three dots converts all arguments passed to the method into an array, $param. Then, when calling the parent method, it takes that array and converts it back to the original arguments. It's basically a lazy way of including all of the arguments without all of the typing. ![]() |
Messages In This Thread |
How to extend the Controller core class - by Edel - 07-22-2017, 03:35 PM
RE: How to extend the Controller core class - by John_Betong - 07-22-2017, 03:49 PM
RE: How to extend the Controller core class - by kilishan - 07-22-2017, 07:46 PM
RE: How to extend the Controller core class - by never2ice - 04-03-2020, 08:40 AM
RE: How to extend the Controller core class - by InsiteFX - 07-23-2017, 04:18 AM
RE: How to extend the Controller core class - by Edel - 07-23-2017, 11:10 AM
RE: How to extend the Controller core class - by twpmarketing - 07-23-2017, 06:42 PM
RE: How to extend the Controller core class - by kilishan - 04-03-2020, 11:19 AM
RE: How to extend the Controller core class - by never2ice - 04-03-2020, 12:14 PM
|