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

adding missing dots #413

Merged
merged 1 commit into from
Oct 23, 2012
Merged
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
4 changes: 3 additions & 1 deletion en/models/data-validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,8 @@ Localized Validation
The validation rules phone() and postal() will pass off any country prefix they do not know how to handle to another class
with the appropriate name. For example if you lived in the Netherlands you would create a class like

::

<?php
class NlValidation {
public static function phone($check) {
Expand All @@ -1278,7 +1280,7 @@ with the appropriate name. For example if you lived in the Netherlands you would
}

This file could be placed in ``APP/Validation/`` or ``App/PluginName/Validation/``, but must be imported via App::uses() before attempting to use it.
In your model validation you could use your NlValidation class by doing the following:
In your model validation you could use your NlValidation class by doing the following::

<?php
public $validate = array(
Expand Down