Permalink
Browse files

Fixed method name for some case-sensitive *nix OS filesystems

  • Loading branch information...
1 parent 30f49b4 commit a0552d3d5caa7c18162ea1f54e4511d477744004 @Borales committed Feb 5, 2012
Showing with 16 additions and 12 deletions.
  1. +4 −0 CHANGELOG.md
  2. +6 −6 EYiiPdf.php
  3. +3 −3 README.md
  4. +3 −3 README_RU.md
View
@@ -1,6 +1,10 @@
Yii-PDF Change Log
==================
+### Version 0.2a (2012-02-05)
+
+* Fixed method name (mpdf) for some case-sensitive *nix OS filesystems (it may cause for some errors) [thanks to Hylke]
+
### Version 0.2 (2012-01-18)
* Parameter `'defaultParams'` is not required anymore (will be used constructor's default params of selected library)
View
@@ -6,7 +6,7 @@
* @link https://github.com/Borales/yii-pdf
* @license http://www.opensource.org/licenses/bsd-license.php
* @package application.extensions.yii-pdf.EYiiPdf
- * @version 0.2
+ * @version 0.2a
*/
class EYiiPdf extends CApplicationComponent
{
@@ -41,9 +41,9 @@ class EYiiPdf extends CApplicationComponent
public $params = array();
/**
- * @var mPDF|null
+ * @var mpdf|null
*/
- protected $_mPDF = null;
+ protected $_mpdf = null;
/**
* @var HTML2PDF|null
@@ -97,12 +97,12 @@ protected function initConstants($library_name)
}
/**
- * @return mPDF
+ * @return mpdf
*/
- public function mPDF()
+ public function mpdf()
{
$this->initLibrary(__FUNCTION__, func_get_args());
- return $this->_mPDF;
+ return $this->_mpdf;
}
/**
View
@@ -39,7 +39,7 @@ If you do so - **you must keep the order of array items!**
'ePdf' => array(
'class' => 'ext.yii-pdf.EYiiPdf',
'params' => array(
- 'mPDF' => array(
+ 'mpdf' => array(
'librarySourcePath' => 'application.vendors.mpdf.*',
'constants' => array(
'_MPDF_TEMP_PATH' => Yii::getPathOfAlias('application.runtime'),
@@ -86,10 +86,10 @@ If you do so - **you must keep the order of array items!**
public function actionIndex()
{
# mPDF
- $mPDF1 = Yii::app()->ePdf->mPDF();
+ $mPDF1 = Yii::app()->ePdf->mpdf();
# You can easily override default constructor's params
- $mPDF1 = Yii::app()->ePdf->mPDF('', 'A5');
+ $mPDF1 = Yii::app()->ePdf->mpdf('', 'A5');
# render (full page)
$mPDF1->WriteHTML($this->render('index', array(), true));
View
@@ -40,7 +40,7 @@ Yii-PDF Extension
'ePdf' => array(
'class' => 'ext.yii-pdf.EYiiPdf',
'params' => array(
- 'mPDF' => array(
+ 'mpdf' => array(
'librarySourcePath' => 'application.vendors.mpdf.*',
'constants' => array(
'_MPDF_TEMP_PATH' => Yii::getPathOfAlias('application.runtime'),
@@ -87,10 +87,10 @@ Yii-PDF Extension
public function actionIndex()
{
# mPDF
- $mPDF1 = Yii::app()->ePdf->mPDF();
+ $mPDF1 = Yii::app()->ePdf->mpdf();
# Вы можете с легкостью переопределить параметры по умолчанию для конструктора
- $mPDF1 = Yii::app()->ePdf->mPDF('', 'A5');
+ $mPDF1 = Yii::app()->ePdf->mpdf('', 'A5');
# render (полная страница page)
$mPDF1->WriteHTML($this->render('index', array(), true));

0 comments on commit a0552d3

Please sign in to comment.