Error when Registering assets for blocks: Call to undefined method Concrete\Core\Asset\Asset::getInstance()

Permalink
Hi all,

I've been following the screencasts for theme development and I'm at the point where I need to register some assets for a block in order for that block to work as it uses a plugin. After registering the assets in my block's controller however, I get the following error:

An unexpected error occurred.
Call to undefined method Concrete\Core\Asset\Asset::getInstance()


I've put the plugin inside a folder called 'assets' in my theme.

This is what's in my controller:

<?php
namespace Application\Block\Blockname;
defined("C5_EXECUTE") or die("Access Denied.");
use Concrete\Core\Block\BlockController;
use Concrete\Core\Asset\AssetList;
use Concrete\Core\Asset\Asset;
use Core;
use Loader;
class Controller extends BlockController
{
    public $helpers = array (
      0 => 'form',
      );
    public $btFieldsRequired = array (
      0 => 'name',


Any help would be appreciated as I'm on a tight deadline :(

Thank you!