Forum


Replies: 7   Views: 4516
How to integrate phpdocx with yii framework?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by tarzip  · 14-11-2013 - 00:14

I hope you have found the solution.



In the start we also faced similar problem but this fixed teh issue.



in  config/main.php in 'import'



'application.modules.phpdocx.classes.*',

        'application.modules.phpdocx.lib.*',

        'application.modules.phpdocx.lib.dompdfParser.*',

        'application.modules.phpdocx.lib.fpdf-tpl.*',

        'application.modules.phpdocx.lib.fpdi.*',

        'application.modules.phpdocx.lib.log4php.*',

        'application.modules.phpdocx.lib.log4php.appenders.*',

        'application.modules.phpdocx.lib.log4php.configurators.*',

        'application.modules.phpdocx.lib.log4php.filters.*',

        'application.modules.phpdocx.lib.log4php.helpers.*',

        'application.modules.phpdocx.lib.log4php.layouts.*',

        'application.modules.phpdocx.lib.log4php.pattern.*',

        'application.modules.phpdocx.lib.log4php.renderers.*',



 



 



and use following code where you create new CreateDocx or other PhpDocx object




require_once '/path-to-phpdocx/classes/AutoLoader.inc';

spl_autoload_unregister(array('YiiBase','autoload'));
AutoLoader::load();
spl_autoload_register(array('YiiBase','autoload'));




Or




require_once '/path-to-phpdocx/classes/AutoLoader.inc';

Yii::registerAutoloader(array("AutoLoader", "load"));