繁体   English   中英

蛋糕中的元素中包含的html helper无法与wamp一起使用

[英]html helper included in elements in cakephp not working with wamp

我正在与cakephp一起工作。我已经为网站设计了一个主页。在这里我包含了元素viz header.ctp,main.ctp和footer.ctp。并且我使用$ this-> element在default.ctp中称它们为元素。 在每个元素中,我都使用了htmlhelper likeHtml-> image('Logo.png');?>现在,当我将其部署到xxamp上时,其工作正常,但是当我将其迁移到wamp时,它没有给出输出而不是显示图像对于

 <? echo $this->Html->image('Logo.png');?>

它显示文本

 Html->image('Logo.png');?>

我正在使用cakephp 2.4.2。 xamp PHP 5.3.5

沼泽:PHP 5.3.0

我让它工作了...我刚刚更换了

 <? ........   ?> with 
<?php ......  ?>

同时声明php代码。 :)

暂无
暂无

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

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