繁体   English   中英

杂货店中的set_field_upload没有渲染

[英]set_field_upload in grocery crud not rendering

我正在尝试使用set_field_upload上传一个名为“photo”的数据库字段中的图像,这对于文本/日期等工作非常有效...等等

但是你不能使用文件上传

  • 它没有显示为文件按钮,它只是一个文本输入。
  • 控制台或网络中没有错误。
  • 字段类型是文本,我尝试varchar类型,没有运气。

这是代码

try {
    $crud = new grocery_CRUD();

    $crud->set_table('test');

    $crud->set_field_upload('photo', 'assets/uploads/files');

    $output = $this->grocery_crud->render();
    $this->_example_output($output);

    } catch(Exception $e) {
        show_error($e->getMessage().' --- '.$e->getTraceAsString());
    }

我通过更改版本解决了问题,我尝试了1.5.8和1.5.0。

我使用1.5.5开始工作

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM