PDF Extension Problem

Hi All,

I have installed pdf extension (http://www.yiiframework.com/extension/pdf/) and followed the instructions.

I get the following error and not sure why.


[30-Jul-2012 01:30:41 UTC] PHP Fatal error:  Class 'Yii' not found in /var/www/xxx/protected/config/main.php on line 119

Main.php looks like




45         // Application components

46         'components' => array(

47 


 //////////////////////// +++++++++++++++++++++ /////////////////


113             'ePdf' => array(

114                 'class'         => 'ext.yii-pdf.EYiiPdf',

115                 'params'        => array(

116                     'mpdf'     => array(

117                         'librarySourcePath' => 'application.vendors.mpdf.*',

118                         'constants' => array(

119                             '_MPDF_TEMP_PATH' => Yii::getPathOfAlias('application.runtime'),

120                         ),

121                         'class'=>'mpdf', // the literal class filename to be loaded from the vendors folder

122                 /*'defaultParams'     => array( // More info: http://mpdf1.com/manual/index.php?tid=184

123                     'mode'              => '', //  This parameter specifies the mode of the new document.

124                     'format'            => 'A4', // format A4, A5, ...

125                     'default_font_size' => 0, // Sets the default document font size in points (pt)

126                     'default_font'      => '', // Sets the default font-family for the new document.

127                     'mgl'               => 15, // margin_left. Sets the page margins for the new document.

128                     'mgr'               => 15, // margin_right

129                     'mgt'               => 16, // margin_top

130                     'mgb'               => 16, // margin_bottom

131                     'mgh'               => 9, // margin_header

132                     'mgf'               => 9, // margin_footer

133                     'orientation'       => 'P', // landscape or portrait orientation

134                 )*/

135                     ),

136                 ),

137             ),

138 

139 

140 

141         ),