Problem with using PhpSpreadsheet in an MVC Framework

  Kiến thức lập trình

Below is the init.php code;

<?php

spl_autoload_register(function ($classname) {

    require "../app/model/" . $classname . '.php';
});

    
require 'config.php';
require 'functions.php';
require 'database.php';
require 'model.php';
require 'controller.php';
require 'App.php';

It managed to work in a plain php file without applying architectures but when i try to integrate it on my main project, an error pops up.

Newbie here, need help from the masters

enter image description here

I tried to downgrade the httpmessage and phpzipstream, it still doesn’t work

New contributor

Jaztin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT