I am facing an issue with loading my CSS and JS files in the view file. I have already added them to the folder and set the base URL. These codes were working fine with a project I previously did on an older version of CodeIgniter. What could be causing this problem? Here is my view:
<link href="<?php echo base_url()?>js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</br></br>
<div class="panel panel-primary" style=" width: 1050px; border-radius: 0">
<div class="panel-heading" style="border-radius: 0 ">user List <button data-toggle="tooltip" data-placement="bottom" title="Print Customer Order" style="border-radius: 0px;"type="button" class="btn btn-default" aria-label="Left Align">
<a href="<?php echo base_url() . 'admin/printlist/'; ?>">
Print List
</a>
</button> </div>
<div class="panel-body" style="border-radius: 0 ">
<table id="myTable" class="table table-bordered" >
<thead>
<tr>
<th>Surname</th>
<th>Name </th>
<th>Age</th>
<th>School</th>
<th>Course</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<?php foreach ($user as $users): ?>
<tr>
<td><?php echo $users->surname; ?></td>
<td><?php echo $users->name; ?></td>
<td><?php echo $users->age; ?></td>
<td><?php echo $users->school; ?></td>
<td><?php echo $users->course; ?></td>
<td><?php echo $users->email; ?></td>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="<?php echo base_url() ?>js/dataTables/jquery.dataTables.js"></script>
<script src="<?php echo base_url() ?>js/dataTables/dataTables.bootstrap.js"></script>
<script>
$(document).ready(function() {
$('#myTable').dataTable({
"aaSorting": [[0, "asc"]]
});
});
</script>