<?php foreach ($tours as $tour): ?>
<li class="liboxs">
<?php echo $html->image('B0001WS6L2.jpg', array('url' => array('controller' => 'tours', 'action' => 'view', $tour['Tour']['id'], Inflector::slug($tour['Tour']['title'], '-')), 'alt' => $tour['Tour']['title'])) ?>
<ul>
<li class="title"><?php echo $tour['Tour']['title'] ?></li>
<li class="des"><?php echo $tour['Tour']['origin'] ?> » <?php echo $tour['Tour']['destination'] ?></li>
<li class="day"><?php echo $tour['Tour']['stay_long'] ?> روز</li>
<li class="price"><?php echo $tour['Tour']['price'] ?> تومان</li>
</ul>
</li>
<?php endforeach ?>
编辑: 那么,问题出在哪里? $ html-&gt; image应该生成example.com/tour/1/seo-friendly-url,它在localhost中生成但在vps中生成example.com/tour/1
答案 0 :(得分:1)
拼写错误?几乎不可能蛋糕与Inflector一起工作,它包含在'require'中意味着如果它不存在,php会死掉
https://github.com/cakephp/cakephp/blob/master/cake/bootstrap.php#L34
您正在显示的完全错误是什么。
旁注,1.3.9昨天发布了...升级的时间?