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

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:

Code:
$psr4 = [
    'Config'      => APPPATH . 'Config',
    APP_NAMESPACE => APPPATH,
    'App'         => APPPATH,          
    'Michelf' => '/var/www/ci2/php-markdown/Michelf/'
];
Reply


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