Welcome Guest, Not a member yet? Register   Sign In
XMLWriter
#4

(01-27-2021, 12:06 AM)g3ck0 Wrote:
(01-26-2021, 11:04 PM)iRedds Wrote: In your code implementation, the class autoloader looks for the XMLWriter class in the app/Models directory.
This class is not in the catalog, or it does not have an App\Models namespace defined.

not enough information

There is no class autoloader in CI < 4, so you couldn't load the class simply by writing $xml = new XMLWriter();

that is the way in which i'm trying to load it, as if i was loading the PHP extension, but it is not working, i don't know why CI4 thinks that i'm trying to use a CI4's class, i already reviewed the extension in the server and it looks like that extension is enabled and running, any help/hint will be appreciated, thanks.
try

PHP Code:
$xml = new \XMLWriter(); 
Reply


Messages In This Thread
XMLWriter - by g3ck0 - 01-26-2021, 07:08 PM
RE: XMLWriter - by iRedds - 01-26-2021, 11:04 PM
RE: XMLWriter - by g3ck0 - 01-27-2021, 12:06 AM
RE: XMLWriter - by nfaiz - 01-27-2021, 04:25 AM
RE: XMLWriter - by iRedds - 01-27-2021, 07:40 AM
RE: XMLWriter - by g3ck0 - 01-27-2021, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB