Files
piratepoet/lib/Models/Subscriber.php
Jonathan Labreuille 1ff7e3f4be Form Subscription
- improved MailPoet ajax to fix token issue
- added js validation and ajax submit in public.js
- add util security to generate tokens
- updated router to use new util security
- added jquery-validation module
- update public config in webpack config
- added error messages in form
2015-08-20 21:02:04 +02:00

18 lines
397 B
PHP

<?php
namespace MailPoet\Models;
if (!defined('ABSPATH')) exit;
class Subscriber extends Model {
public static $_table = MP_SUBSCRIBERS_TABLE;
function __construct() {
parent::__construct();
$this->addValidations('email', array(
'required' => __('You need to enter your email address.'),
'isEmail' => __('Your email address is invalid.')
));
}
}