-1

I have included the following script in the header file.

<html>
    <head>

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url();?>assets/js.js" ></script>
    </head>

And an error is thrown.

Is there anything I have to change?

goto
  • 7,908
  • 10
  • 48
  • 58

1 Answers1

-1

Make sure that you are loading URL Helper, if not try this link

and change these line

 <script type="text/javascript" src="<?php echo base_url();?>assets/js.js" ></script>
 <link rel="stylesheet" type="text/css" href="assets/css.css">

to

<script type="text/javascript" src="<?php echo base_url("assets/js.js");?>"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url("assets/css.css");?>">
Community
  • 1
  • 1
Rakesh Mishra
  • 358
  • 5
  • 17