运行此查询时...列表视图中的链接中没有显示操作...并且它们不再起作用:
控制器.php
$uid = 10;
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tt_content');
$statement = $queryBuilder
->select('uid', 'pid', 'header')
->from('tt_content')
->where(
$queryBuilder->expr()->eq('uid', $uid)
)
->execute();
while ($row = $statement->fetchAll()) {
$this->view->assign('inet', $row);
}
安慰:
<tr id="2">
<td>2</td>
<td class="name"><a href="code/?tx_code_code%5Brecord%5D%5Buid%5D=2&tx_code_code%5Brecord%5D%5Bcode%5D=25490004X&tx_code_code%5Brecord%5D%5Bname%5D=Company%20Name%20Inc&cHash=e8e3573028618746234">Company Name Inc</a></td>
</tr>
当我调试它时,我可以看到我渲染了以下数组:
array(20 items)
0 => array(3 items)
uid => 1 (integer)
code => '213800' (6 chars)
name => 'Company Name Inc' (16 chars)
我怎样才能让链接再次工作?