0

このビューで「未定義メソッド App::link() への呼び出し」を取得します。

<?php echo $this->link('Forum index', array('controller' => 'forum', 'action' => 'index')); ?> »
<?php echo $this->link($forumName, array('controller' => 'forum', 'action' => 'view', $forumId)); ?> 

このエラーの原因は何ですか?

4

1 に答える 1

0

試しました$this->Html->link()か?

$thisビューではあまり使用されません。最も一般的なのは、$this->Html->または$this->Form->

于 2013-01-20T02:32:10.407 に答える