Example #1
0
echo Yii::$app->urlManager->createUrl(['security/create-role']);
?>
" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-plus"></i></a>
						<table class="table">
							<thead>
								<tr>
									<th>No</th>
									<th>Role Name</th>
									<th>Module Allowed</th>
									<th width="150px">Action</th>
								</tr>
							</thead>
							<tbody>
								<?php 
$i = 1;
foreach ($roleModel->findRoleWithModule() as $key => $value) {
    ?>
									<tr>
										<td><?php 
    echo $i;
    ?>
</td>
										<td><?php 
    echo $value['role'];
    ?>
</td>
										<td><?php 
    echo $value['module'];
    ?>
</td>
										<td>