add some api method
This commit is contained in:
1 parent
aaf4ee9f53
commit
13a9bdcca0
12 files changed
+656
-10
No files matched your search
@@ -144,8 +144,11 @@ class DocumentController extends Controller
|
||||
|
||||
public function actionCreateDocument($id)
|
||||
{
|
||||
$documentService = new DocumentService($id);
|
||||
$documentService->setFields();
|
||||
$documentService->downloadDocument();
|
||||
if(!empty($this->findModel($id)->template->template_file_name)){
|
||||
$documentService = new DocumentService($id);
|
||||
$documentService->setFields();
|
||||
$documentService->downloadDocument();
|
||||
}
|
||||
return $this->redirect(['view', 'id' => $id]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user