hi, i'm trying to render a form in a modal that has file upload form widget. when i choose a file it will be rendered on the form but as i click on that file for edit or delete it throw this error : "A widget with class name 'formFiles' has not been bound to the controller" on line 517 of /opt/lampp/htdocs/imis-lawyer/modules/backend/classes/Controller.php my createForm function is like this:
public function onCreateForm()
{
$dashboard_id = post('dashboard_id');
$level_id = post('level_id');
if($this->checkPermission($level_id)){
$dashboardModel = Dashboard::find($dashboard_id);
$config = $this->makeConfig($this->levelManager);
$config->model = new \Imis\ProcessManagement\Models\Dashboard;
$config->arrayName = 'Dashboard';
$widget = $this->makeWidget('Backend\Widgets\Form', $config);
$widget->bindToController();
$this->vars['widget'] = $widget;
$this->vars['dashboard_id'] = $dashboard_id;
$this->vars['dashboard_model'] = $dashboardModel;
return $this->makePartial('levelmanager/level_manager');
}else{
return $this->onShowPassed();
}
}
and config file for file upload is:
files: type: fileupload mode: file
any body knows what's the problem!? Thank you.