• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[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/'
];
Support Development  • Practical CodeIgniter 3  •
Myth:AuthVulcan - CLI Tools for CI4
Reply


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.