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?
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?
*bump* any ideas?
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 {
Thanks Steve, that works like a charm!