دلیل خطای Class 'kartikmpdfPdf' not found چیست؟

ساخت وبلاگ
سلام.

با دستور زیر kartikmpdfPdf رو برای yii2 نصب کردم:

composer require kartik-v/yii2-mpdf "dev-master"

با دستور زیر آن را معرفی کرده ام:

use kartikmpdfPdf;

و در متد زیر از آن استفاده کرده ام:

public function actionReport() {
   // get your HTML raw content without any layouts or scripts
   $content = $this->renderPartial('_reportView');

   // setup kartikmpdfPdf component
   $pdf = new Pdf([
       // set to use core fonts only
       'mode' => Pdf::MODE_CORE, 
       // A4 paper format
       'format' => Pdf::FORMAT_A4, 
       // portrait orientation
       'orientation' => Pdf::ORIENT_PORTRAIT, 
       // stream to browser inline
       'destination' => Pdf::DEST_BROWSER, 
       // your html content input
       'content' => $content,  
       // format content from your own css file if needed or use the
       // enhanced bootstrap css built by Krajee for mPDF formatting 
       'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css',
       // any css to be embedded if required
       'cssInline' => '.kv-heading-1{font-size:18px}', 
        // set mPDF properties on the fly
       'options' => ['title' => 'Krajee Report Title'],
        // call mPDF methods on the fly
       'methods' => [ 
           'SetHeader'=>['Krajee Report Header'], 
           'SetFooter'=>['{PAGENO}'],
       ]
   ]);

   // retu the pdf output as per the destination setting
   retu $pdf->render(); 
}

همه اینها را طبق آموزش انجام دادم ولی خطای زیرو میگیرم:

Class 'kartikmpdfPdf' not found

لطفا راهنمایی کنید.

متشکرم. برنامه نویس...
ما را در سایت برنامه نویس دنبال می کنید

برچسب : نویسنده : خنجی prog بازدید : 176 تاريخ : جمعه 18 دی 1394 ساعت: 21:07