Welcome Guest, Not a member yet? Register   Sign In
RecursiveDirectoryIterator
#1

hello!
ป๊อกเด้งออนไลน์UFAXS
I am converting an application from Codeigniter 3 to 4.
I have written some functions related to files and with Codeigniter 4 the php "RecursiveDirectoryIterator" function can no longer be found.
Reply
#2

Maybe you are missing an import statement. Try adding "use RecursiveDirectoryIterator;" after the namespace declaration. Alternatively, you can prepend a namespace separator when you instantiate the class, i.e. "new \RecursiveDirectoryIterator(...)". (Notice the backslash added).
Reply




Theme © iAndrew 2016 - Forum software by © MyBB