Reputation: 97
I have a form that allows file uploads and I want to customize the ORM Validation error below and I don't know how.
models/_external.logo.Upload::image
Where do I place the error messages?
Upvotes: 0
Views: 298
Reputation: 9650
You need to place your messages array in the file: ./application/messages/models/_external.php
The format of the array will be:
<?php defined('SYSPATH') or die('No direct script access.');
return array(
'logo' => array(
'Upload::image' => 'Invalid image!'
)
);
Upvotes: 1