In config.php
$config['base_url'] = 'http://localhost/codeigniter/';
In View
<link rel="stylesheet" href="<?php base_url(); ?>css/default.css" type="text/css" />
=> Error: Call to undefined function base_url(); Help me
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To use
base_url()(shorthand), you have to load theURL HelperfirstOr you can autoload it by changing
application/config/autoload.phpOr just use
Same applies to
site_url().Also I can see you are missing
echo(though its not your current problem), use the code below to solve the problem