Add ContractForm, Add contract pdf, Add Display all Transfer option
This commit is contained in:
@@ -14,6 +14,8 @@ use common\models\Card;
|
||||
use frontend\models\CustomerUpdate;
|
||||
use frontend\models\CustomerCreate;
|
||||
use common\models\Image;
|
||||
use frontend\models\ContractForm;
|
||||
use yii\base\Exception;
|
||||
|
||||
/**
|
||||
* CustomerController implements the CRUD actions for Customer model.
|
||||
@@ -205,16 +207,13 @@ class CustomerController extends Controller
|
||||
}
|
||||
|
||||
|
||||
public function actionContract($id){
|
||||
$model = $this->findModel($id);
|
||||
|
||||
$mpdf=new \mPDF('utf-8', 'A4-L');
|
||||
$mpdf->WriteHTML($this->renderPartial('_contract', [
|
||||
'model' => $model,
|
||||
]));
|
||||
$mpdf->Output('szerzodes.pdf', 'D');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// s
|
||||
|
||||
/**
|
||||
* Deletes an existing Customer model.
|
||||
|
||||
Reference in New Issue
Block a user