Accessing "$request" and "validate" from another class |
(12-15-2019, 05:00 AM)MGatner Wrote: Those libraries are initialized on the current routed controller during initController, so if you are loading the controller from somewhere else you will need to inject those libraries from the current controller. If you are extending that controller to access those methods it should work fine. Can you share your code that is trying to make the uploadFile() call? Those libraries are initialized on the current routed controller during initController - this was the main problem. Now I get it. Thank you. (12-15-2019, 05:33 AM)InsiteFX Wrote: See the CodeIgniter 4 User Guide. Thank you @InsiteFX. I read this part of the user guide just before posting the thread, but could not get it then. Now it is clear and solved my issue. |
Messages In This Thread |
Accessing "$request" and "validate" from another class - by webdevron - 12-15-2019, 12:56 AM
RE: Accessing "$request" and "validate" from another class - by MGatner - 12-15-2019, 05:00 AM
RE: Accessing "$request" and "validate" from another class - by webdevron - 12-15-2019, 02:18 PM
RE: Accessing "$request" and "validate" from another class - by InsiteFX - 12-15-2019, 05:33 AM
|