Abbas
Abbas

Reputation: 97

File location of custom Kohana ORM image upload error messages

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

Answers (1)

badsyntax
badsyntax

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

Related Questions