1

Тема: Как подключить "прикрепление файлов" в плагине contact?

Добрый день. Тут ( http://forum.template-cms.ru/post/6832/#p6832 ) был описан простой способ прикрепления файлов к сообщению.
Я смог разобраться в форме и языковом файле, но нужно же, чтобы все работало:

    <?php echo (Form::hidden('csrf', Security::token())); ?>
    <label><?php echo __('Name', 'contact'); ?></label>
    <input  type="text" name="contact_name" class="input-xlarge" value="<?php echo $name; ?>" /><br />
    <label><?php echo __('Email', 'contact'); ?></label>
    <input  type="text" name="contact_email" class="input-xlarge" value="<?php echo $email; ?>" /><br />
    <label><?php echo __('Phone', 'contact'); ?></label>
    <input  type="text" name="contact_email" class="input-xlarge" value="<?php echo $phone; ?>" /><br />
    <label><?php echo __('Anketa', 'contact'); ?></label>
    <input type="file" name="cffile" />

Что нужно дописать в файле плагина, чтобы все заработало?

Поделиться