Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14115

Call to undefined function base_url()

$
0
0
I get this error when I try to load base_url funcion. The problem is that I've already added base_url to autoload file but the issue still:
Code:
$autoload['helper'] = array('url');

views/home.php file has the following code:
Code:
<!doctype html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport"
         content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <title>Document</title>
</head>
<body>
<div align="center">
   <h1>Index</h1>
   <a href="<?= base_url()?>">Link</a>
</div>

</body>
</html>

Any ideas? Since base_url function is being loaded by autoload I don't know what else should I try to do to fix this.

Thank you!

Viewing all articles
Browse latest Browse all 14115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>