简体   繁体   English

如何在Windows上使用PHPTAL :: setPhpCodeDestination方法设置路径?

[英]How to set a path with the PHPTAL::setPhpCodeDestination method on Windows?

I have project with Zend Framework. 我有Zend Framework项目。 I install xampp and download project. 我安装xampp并下载项目。

However, I do not know how to set the path to phptal above. 但是,我不知道如何将路径设置为上面的phptal。 It is from what I noticed application.ini file and PHPTAL.php. 这是从我注意到的application.ini文件和PHPTAL.php中得出的。 In both is set to / tmp / and then the project does not work. 在两个都设置为/ tmp /,然后项目不起作用。 However, if you change to a different path is a project work without styles and layout's 但是,如果更改为其他路径,则是一项没有样式和布局的项目工作

How to set it up properly? 如何正确设置?

This should solve your problem: 这应该可以解决您的问题:

$phptal = new PHPTAL();
$phptal->setPhpCodeDestination('c:\\WINDOWS\\Temp\\'); // or whatever you want

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM