C57 Add-on installation "Cannot redeclare class"

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?

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