Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zend_Form_Element not found #11

Open
eakdafreak opened this issue Feb 22, 2016 · 6 comments
Open

Zend_Form_Element not found #11

eakdafreak opened this issue Feb 22, 2016 · 6 comments
Assignees
Labels
Milestone

Comments

@eakdafreak
Copy link

I get this:
Fatal error: Class 'Cgsmith\Form\Element\Zend_Form_Element' not found in /home/eakdafreak/domains/eakdafreak.com/vendor/cgsmith/zf1-recaptcha-2/src/Cgsmith/Form/Element/Recaptcha.php on line 13

Can you help me, please?

@solverat
Copy link
Contributor

same here! @cgsmith: please update your extends:

replace
class Recaptcha extends Zend_Form_Element
with
class Recaptcha extends \Zend_Form_Element

also with the other zend dependencies (\Zend_exception).

@cgsmith cgsmith added this to the 1.0.2 milestone Apr 19, 2016
@cgsmith cgsmith self-assigned this Apr 19, 2016
@cgsmith cgsmith added the bug label Apr 19, 2016
@cgsmith
Copy link
Owner

cgsmith commented Apr 19, 2016

@solverat or @eakdafreak can you test the commit out or branch out before I merge it in?

@cgsmith
Copy link
Owner

cgsmith commented Apr 19, 2016

@solverat my only concern is that there was a PR to address PSR-4 autoloading. See here: 35b5239

Can you explain what removing this would do?

@solverat
Copy link
Contributor

solverat commented Apr 20, 2016

tested it: works! 👍
if you keep the autoloader, we'll be able to load your classes in a namespaced environment.

@solverat
Copy link
Contributor

@cgsmith? :)

cgsmith added a commit that referenced this issue Apr 26, 2016
Addresses issue #11 to extend Zend appropriately
cgsmith added a commit that referenced this issue Apr 26, 2016
@eakdafreak
Copy link
Author

Late response but works like a charm now!
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants