Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] CI4 - Unable to Autoload Markdown Class

The problem is that the files themselves have a namespace, Michelf. So the class Markdown doesn't actually exist.

The simplest way would be composer. If you don't want to use that you can use CI's autoload and let it know the namespace and where it's located. In app/Config/Autoload.php:

$psr4 = [
    'Config'      => APPPATH . 'Config',
    'App'         => APPPATH,          
    'Michelf' => '/var/www/ci2/php-markdown/Michelf/'

Messages In This Thread
RE: CI4 - Unable to Autoload Markdown Class - by kilishan - 04-26-2019, 09:32 PM

Theme © iAndrew 2016 - Forum software by © MyBB