1
vote
1
vote
Class 'Craft' not found
This is not really specific to Craft, but you should import Craft at the beginning of your class file like this:
<?php
use Craft;
...
I suggest you take a look at that documentation for more ...
1
vote
Using Recaptcha v2 and Guest Entries plugin
I don't have much experience with these, but here are some potential plugins you can look into for Craft 2 that use various anti-spam techniques:
https://straightupcraft.com/craft-plugins/snaptcha
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
plugin-recaptcha × 4craft3 × 1
plugins × 1
error-message × 1
multi-site × 1
craft2 × 1
plugin-guestentries × 1
classes × 1