Commit 670e48f3 authored by Raph El's avatar Raph El

test pdf

parent 657893ab
......@@ -1473,9 +1473,33 @@ La vie en santé;Santé;;
}
public function actionPdfTest(){
Pdf::createPdf();
//Pdf::createPdf();
require_once '../../pixelhumain/ph/vendor/autoload.php';
//use Spipu\Html2Pdf\Html2Pdf;
Pdf::initPdf();
$html2pdf = new Html2Pdf();
$html2pdf->writeHTML('<h1>HelloWorld</h1>This is my first test');
$html2pdf->output();
}
// public function actionPay() {
// require_once '../../pixelhumain/ph/vendor/autoload.php';
// $api = new MangoPay\MangoPayApi();
// // configuration
// $api->Config->ClientId = Yii::app()->params["mangoPay"]["ClientId"];
// $api->Config->ClientPassword = Yii::app()->params["mangoPay"]["ClientPassword"];
// $api->Config->TemporaryFolder = Yii::app()->params["mangoPay"]["TemporaryFolder"];
// $params = array( "ClientId" => $api->Config->ClientId );
// //$this->renderPartial( "doc/mango" , $params );
// //$this->renderPartial( "api/index" , $params );
// $this->renderPartial( "paymentDirect/payment" , $params );
// }
public function actionListcountries(){
$res = Zone::getListCountry(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment