Install Theme as Package (Error)

Permalink
So, I'm trying to install a theme as a package so I can use a custom grid framework, and when I try to install the package immediately I get this error:

Class 'Concrete\Package\TptV01\Core' not found


And it literally shuts the entire site down. Nothing is accessible until I delete the database entry from phpMyAdmin. Enabling Bootstrap3 was super easy. And had I used Bootstrap3 to build this website, I would have just went that direction. Unfortunately I built this website a couple years ago and used a framework called Lemonade instead.

Here's my controller.php based on the "Package a Theme" and "Custom Grid Framework" tutorials:

<?php 
namespace Concrete\Package\TptV01;
use Concrete\Core\Package\Package;
use Concrete\Core\Page\Theme\Theme;
defined('C5_EXECUTE') or die("Access Denied.");
class Controller extends Package
{
protected $pkgHandle = 'tpt_v01';
protected $appVersionRequired = '5.7.1';
protected $pkgVersion = '1.0';
public function getPackageDescription()
{
    return t("Installs True Physical Therapy, v01.");
}
public function getPackageName()


Here is the page_theme.php
<?php
namespace Concrete\Package\TptV01\Theme\Tpt;
use Concrete\Core\Page\Theme\Theme;
use Concrete\Package\TptV01\Src\Lemonade;
use Core;
class PageTheme extends Theme {
protected $pThemeGridFrameworkHandle = 'lemonade';
}


And here is the framework php itself (lemonade.php):
<?php 
namespace Concrete\Package\TptV01\Src;
use Concrete\Core\Page\Theme\GridFramework\GridFramework;
defined('C5_EXECUTE') or die(_("Access Denied."));
class Lemonade extends GridFramework
{
    public function getPageThemeGridFrameworkName()
    {
        return t('Lemonade Grid');
    }
    public function getPageThemeGridFrameworkRowStartHTML()
    {
        return '<div class="frame">';
    }
    public function getPageThemeGridFrameworkRowEndHTML()


I don't understand what I'm doing wrong, I'm not a PHP pro, and I'm starting to get super frustrated because I don't understand why it won't just install the basic theme. What have I written wrong or why am I getting that error?

BisonSatellite
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi scarletSmoke,

In your controller, you are trying to use the following code without importing the class first:
$manager = Core::make('manager/grid_framework');

Under your namespace add:
use Core;