C57 Add-on installation "Cannot redeclare class"

Permalink
Hi guys,

Wanted to start with c57 development, so I started a clean installation with beta 1. Then I copied an example add-on from http://andrewembler.com/posts/concrete5-57-add-on-development-part-... and put it in /packages.

If I go to Dashboard / Extend, I'm getting this error: "require(): Cannot redeclare class emaillistsignuppackage".

Is this a bug, or am I doing something wrong?

A3020
 
A3020 replied on at Permalink Reply
A3020
*bump* any ideas?
Steevb replied on at Permalink Best Answer Reply
Steevb
Andrew's write up is not quite right. Have you tried:
<?php
namespace Concrete\Package\EmailListSignup;
use Package;
use BlockType;
use SinglePage;
use Loader;
class Controller extends Package {
A3020 replied on at Permalink Reply
A3020
Thanks Steve, that works like a charm!