Forms 预设置字段\u AdminMaintenanceController中的选项

Forms 预设置字段\u AdminMaintenanceController中的选项,forms,prestashop,backoffice,Forms,Prestashop,Backoffice,在我的覆盖文件AdminMaintenanceController中,当维护模式处于活动状态时,我尝试添加一个输入文件以在maintenance.tpl上(动态)添加一个映像。字段表单正确显示在我的后台维护ip和交换机下方,但未上载任何内容 你有关于这个问题的提示或信息吗 我是1.6 我的控制器: class AdminMaintenanceController extends AdminMaintenanceControllerCore { public function __construc

在我的覆盖文件AdminMaintenanceController中,当维护模式处于活动状态时,我尝试添加一个输入文件以在maintenance.tpl上(动态)添加一个映像。字段表单正确显示在我的后台维护ip和交换机下方,但未上载任何内容

你有关于这个问题的提示或信息吗

我是1.6

我的控制器:

class AdminMaintenanceController extends AdminMaintenanceControllerCore
{
public function __construct()
{
    $this->bootstrap = true;
    $this->className = 'Configuration';
    $this->table = 'configuration';

    parent::__construct();


    $this->fields_options = array(
        'general' => array(
            'title' =>    $this->l('General'),
            'fields' =>    array(
                'PS_SHOP_ENABLE' => array(
                    'title' => $this->l('Enable Shop'),
                    'desc' => $this->l('Activate or deactivate your shop (It is a good idea to deactivate your shop while you perform maintenance. Please note that the webservice will not be disabled).'),
                    'validation' => 'isBool',
                    'cast' => 'intval',
                    'type' => 'bool'
                ),
                'PS_MAINTENANCE_IP' => array(
                    'title' => $this->l('Maintenance IP'),
                    'hint' => $this->l('IP addresses allowed to access the front office even if the shop is disabled. Please use a comma to separate them (e.g. 42.24.4.2,127.0.0.1,99.98.97.96)'),
                    'validation' => 'isGenericName',
                    'type' => 'maintenance_ip',
                    'default' => ''
                ),
            ),
            'submit' => array('title' => $this->l('Save'))
        ),

        'image' => array(
            'title' => $this->l('Images parameters'),
            'fields' => array(
                'PS_IMG1' => array(
                    'title' => $this->l('Left side image'),
                    'type' => 'file',
                    'name' => 'PS_IMG1',
                    'thumb' => _PS_IMG_.'PS_IMG1.jpg',
                    'hint' => $this->l('Choose the photo for this side'),
                ),
            ),
            'submit' => array('title' => $this->l('Save'))
        ),

您似乎只实现了表单字段显示,而没有实现文件(图像)上载过程。您需要在表单确认后实例化一个图像上传过程

您似乎只实现了表单字段显示,而没有实现文件(图像)上传过程。您需要在表单确认后实例化一个图像上载过程是的,使用后处理函数和ImageManager类,它可以工作!是的,通过后处理函数和ImageManager类,它可以工作!