本文整理汇总了PHP中X2Html::ajaxLink方法的典型用法代码示例。如果您正苦于以下问题:PHP X2Html::ajaxLink方法的具体用法?PHP X2Html::ajaxLink怎么用?PHP X2Html::ajaxLink使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X2Html
的用法示例。
在下文中一共展示了X2Html::ajaxLink方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
*****************************************************************************************/
?>
<div class="topic-reply" id="<?php
echo $data->id;
?>
-topic-reply">
<div class="reply-header page-title">
<div class="reply-post-number">
<?php
echo X2Html::link("#" . ($page * Topics::PAGE_SIZE + ($index + 1)), Yii::app()->controller->createUrl('/topics/topics/view', array('id' => $data->topicId, 'replyId' => $data->id)));
?>
</div>
<div class="reply-delete-button">
<?php
if ($data->isDeletable()) {
echo X2Html::ajaxLink(X2Html::fa('close'), Yii::app()->controller->createUrl('/topics/topics/deleteReply', array('id' => $data->id)), array('method' => 'POST', 'data' => array('YII_CSRF_TOKEN' => Yii::app()->request->csrfToken), 'success' => 'function() { window.location = window.location }'), array('class' => 'x2-button right', 'confirm' => Yii::t('topics', 'Are you sure you want to delete this post?')));
}
?>
</div>
<div class="reply-edit-button">
<?php
if ($data->isEditable()) {
echo X2Html::link('', Yii::app()->controller->createUrl('/topics/topics/updateReply', array('id' => $data->id)), array('class' => 'x2-button icon edit right'));
}
?>
</div>
<div class="clear-fix"></div><br>
</div>
<div class="topic-content clear-fix">
<div class="reply-user-info">
<div class="reply-username">