私はjoomlaコンポーネントを構築していますが、私は以下の解決策を見つけることができません。私のフロントエンドでは、JToolbarクラスのjoomlasビルドを使用して、編集上のようにイベントを処理し、そういったものを削除します。JToolbarのフロントエンドは、クリック時に値を提示します
<form action="<?php echo JRoute::_('index.php');?>" method="post"
name="termForm" id="adminForm">
<table class="stripeMe">
<tbody>
<thead>
<tr>
<th>Begriff</th>
<th>Definition</th>
<?php if ($user->authorize('com_glossary', 'edit', 'glossary', 'all')): ?><th>Published</th> <?php endif; ?>
</tr>
</thead>
<?php foreach($this->items as $i => $item): ?>
<tr>
<td>
<span class="title"><?php echo $item->tterm; ?></span>
<?php if ($user->authorize('com_glossary', 'edit', 'bearbeiten', 'all')):?>
<?php echo $this->getEdit(); ?><?php endif; ?>
</td>
<td><?php echo $item->tdefinition; ?></td>
<?php if ($user->authorize('com_glossary', 'edit', 'bearbeiten', 'all')): ?>
<td><?php echo $this->getPublished(); ?></td> <?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div>
<input type="hidden" name="task" value="" /> <input type="hidden"
name="id" value="" onclick="submitbutton(<?php echo count($item->id); ?>);" /> <input type="hidden"
name="option" value="com_glossary" /> <input type="hidden"
name="controller" value="bearbeiten" />
<?php echo JHtml::_('form.token'); ?>
</div>
</form>
私はボタンイベントのサブコントローラに選択された行のidを渡したいと私は本当にここで
はい、私はそれにもしようとしていたが、でもそのように私はからの最後の値を取得していますがトリガされないように隠された入力にイベントを取り付けるのない使用もありませんループ。 – lgt
私の答えを更新しました – WooDzu