I am using Yii 2 basic application template for the project
I am using Admin LTE theme. Now I am trying to open the create form on the modal window. It gets opened perfectly but the logout functionality of the application gets blocked.
Below is the index.php
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use app\models\Incomegeneration;
use yii\data\Pagination;
use yii\widgets\LinkPager;
use yii\bootstrap\Modal;
use yii\helpers\Url;
?>
<div class="incomegeneration-index">
<h2><?= Html::encode($this->title) ?></h2>
<p>
<?= Html::button('<span class="glyphicon glyphicon-plus"></span> Create',['value'=>Url::to('index.php?r=incomegeneration/create'),'class' => 'btn btn-success','id'=>'modalButton']) ?>
</p>
<?php
Modal::begin([
'header'=>'Create',
'id'=>'modal',
'size'=>'modal-lg',
]);
echo "<div id='modalContent'></div>";
Modal::end();
// Grid View
?>