Hi. I just cannot display an image in CodeIgniter. I am constantly getting 404 response from the server and the image is not displayed:
Code:
<?= $this->extend('layouts/default') ?>
<?= $this->section('content') ?>
<body>
<nav class="navbar navbar-light">
<div class="container">
<a class="navbar-brand" href="#">Navbar</a>
</div>
</nav>
<div class="presentation container">
<h1 class="name">Ilkin Shafiyev</h1>
<div class="info">
<img src="<?php echo base_url() . 'images/profile.jpg'; ?>" />
</div>
</div>
</body>
</html>
<?= $this->endSection() ?>
This is my index.php file, located into the Views folder. The image is located in images folder, which itself is located directly in project-root. I set my baseUrl to project-root folder so the path seems to be right. I tried literally everything, tried display different images, but without any success. Image links from external resources, however seem to work just right. What should I do?