Hello,
- I inherited x-corporation with mytheme but I get the error:
“Class ‘Grav\Theme\Xcorporation’ not found”
- The problem Is in the php file, user/themes/mytheme/mytheme.php has:
<?php
namespace Grav\Theme;
class mytheme extends Xcorporation
{
// Some new methods, properties etc.
}
?>
- Grav works fine with the original X-Corporation theme, it creates a folder: user/themes/x-corporation with the following file: x-corporation.php
<?php
namespace Grav\Theme;
use Grav\Common\Theme;
class Xcorporation extends Theme
{
}
?>
- I found on the forum this same topic from 2017 with no solution:
Theme Inheritance - Problem Extending Parent Theme
But I need to extend x-corporation theme and I do not find the way to solve this error, any help is appreciated.
Thanks and regards.
joejac