-1
我開始進入CakePHP 1.3的第一步,並且遇到了無法找到的解析錯誤。我想了main tutorial和遇到此錯誤:新手解析錯誤T_DOUBLE_ARROW
Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in /Applications/XAMPP/xamppfiles/htdocs/mysite.com/app/views/posts/index.ctp on line 11
影響的文件是:
<h1>Posts</h1>
<table>
<tr>
<th>ID</th>
<th>Title</th>
<th>Creation date</th>
</tr>
<?php foreach ($posts as $post): ?>
<tr>
<td><?php echo $post['Post']['id']; ?></td>
<td><?php echo $this->Html->link($post['Post']['title'], array ('controller', => 'posts', 'action' => 'view', $post['Post']['id'])); ?></td>
<td><?php echo $post['Post']['created']; ?></td>
</tr>
<?php endforeach; ?>
</table>
我在哪裏錯了?
是的!它確實是可見的......謝謝! – vitto 2011-03-26 13:21:32