giansi / gravstrap-theme

Gravstrap Theme helps you to start a new Grav CMS site with Bootstrap support and several ready to use modules. It is also perfect to start a new Bootstrap custom theme, to create your unique design.
MIT License
7 stars 12 forks source link

Theme inheritance causes class error #6

Closed sleepysunday1979 closed 8 years ago

sleepysunday1979 commented 8 years ago

Creating an inherited theme as per the grav documentation results in a class error.

eg: themes/gravstrapmod/gravstrapmod.php

<?php
 namespace Grav\Theme;

 class GravstrapMod extends GravstrapTheme
{

}

Results in error:

Whoops \ Exception \ ErrorException (E_ERROR)
COPY
Class 'GravstrapTheme' not found
sleepysunday1979 commented 8 years ago

Closing, already answered. https://github.com/giansi/gravstrap-theme/issues/4