みなさん、こんにちは。joomla3でウェブサイトをやっています。
モーダルウィンドウを開いたときにタスクを実行したいのですが、これを行うためにモーダルでビューを表示します。
これは実行するタスクのルーターです
<?php $link = JRoute::_('index.php?option=com_projects&view=proyectos&task=este&id='. $item->id);?>
<div class="span4">
<a href="#.<?php echo $link; ?>" role="button" class="btn" data-toggle="modal">
<img src="<?php echo JURI::root()?>/<?php echo $item->imagenportada; ?>"/></a>
</div>
そして今、モーダルウィンドウ
<div id="<?php echo $link ?>" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
しかし、動作しません。何か案が!