Symfony 1.4x 和 sfTCPDPlugin
我已经在我的项目中安装了 sfTCPDFPlugin,但是当我尝试测试安装是否正常(在官方网站上找到源代码)时,我收到错误:
Fatal error: Class 'TCPDF' not found in C:\wamp\www\mairie\plugins\sfTCPDFPlugin\lib\sfTCPDF.class.php on line 12
如何修复它?
I have installed sfTCPDFPlugin in my project, but when I try to test if the installation is alright (with the source found on the official site) I get the error:
Fatal error: Class 'TCPDF' not found in C:\wamp\www\mairie\plugins\sfTCPDFPlugin\lib\sfTCPDF.class.php on line 12
How can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请阅读此处的自述文件选项卡:http://www.symfony-project.org/plugins/sfTCPDFPlugin
它说你必须下载 tcpdf 库,而不仅仅是 sfTCPDPlugin。
Read the readme tab here : http://www.symfony-project.org/plugins/sfTCPDFPlugin
It says you have to download the tcpdf library, not only the sfTCPDFPlugin.
我面临同样的问题,我做了以下任务,它也会对你有帮助。
首先运行: symfony plugin:uninstall sfTCPDFPlugin 然后从插件文件夹中删除 sfTCPDFPlugin 目录。
请执行以下设置:
1.
cd 你的项目路径/symfony
2. symfony插件:安装sfTCPDFPlugin
3.下载tcpdf库,将其解压并粘贴到您的sfTCPDFPlugin/lib中,现在您的目录看起来像您的项目路径/symfony/plugins/sfTCPDFPlugin/lib/tcpdf
现在更改您的 ProjectConfiguration.class.php 以添加
$this->enablePlugins( array('sfTCPDFPlugin') );
现在运行symfony plugin:publish-asstes
最后清除缓存symfony cc
。i faced with same problem, and i did the following task it will also help you.
first of all run:
symfony plugin:uninstall sfTCPDFPlugin
then remove the sfTCPDFPlugin directory form your plugin folder.mow do the following setps:
1.
cd your project path/symfony
2.
symfony plugin:install sfTCPDFPlugin
3. download the tcpdf library unzip it and past into your sfTCPDFPlugin/lib now your directory looks like your project path/symfony/plugins/sfTCPDFPlugin/lib/tcpdf
now change your ProjectConfiguration.class.php to add
$this->enablePlugins( array('sfTCPDFPlugin') );
now run thesymfony plugin:publish-asstes
and finally clear the cachesymfony cc
.