Extend RESTController BaseModel? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Extend RESTController BaseModel? (/showthread.php?tid=80503) |
Extend RESTController BaseModel? - blaasvaer - 11-09-2021 I'm trying to add a method to the BaseModel used with a ResourceController, but I keep getting an Internal Server Error; so now, I'm trying to figure out if this is at all possible since I've tried EVERYTHING I can think of to get this to work! Now, can I at all fiddle with the Model for a ResourceController or am I barking up the wrong tree here? I get that the 'automatic' methods of delete, update etc. are somehow 'automagically' linked to the ResourceController, and therefore I'm being suspicious about being able to modify it at all. Maybe I have to skip the ResourceController, and go the manual way ... which I'd find a little lame. As REST is somewhat wobbly defined ... |