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

Create SubscribeForm.php #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Lassi/App/Components/Forms/SubscribeForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php namespace App\Components\Forms;

use App\Components\Validation\FormValidator;
/**
* Subscription form validation component
*
* @author Benjamin Ulmer
* @link http://github.com/remluben/slim-boilerplate
*/
class SubscribeForm extends FormValidator
{
protected $rules = array(
'email' => array('required' => null, 'email' => null)
);
protected $messages = array(
'email' => array(
'required' => 'The email address is required. Please fill it in.',
'email' => 'The email field does not contain a vaild email address. Please change your input.',
)
);
}