title: Adding external javascript in views codeigniter4 not the assets uses base_url()
body: <p>I'm using codeigniter 4. I have been doing ajax request directly to a view file.  Now I want to
  use external ajax_file_name.js and call it inside that view</p>
  <pre><code>My Views directory looks like this:
  
  --| Views
  -----| Products
  ---------| index.php
  ---------| ajaxFolder
  --------------|ajax_operation.js
  </code></pre>
  <p>I always do ajax in index like this</p>
  <pre><code>Views/ Products/ index.php
  
  $(function($){
      
      //my ajax cruds functions goes here
  
  })(jQuery);
  </code></pre>
  <p>But now I want to be able to use ajax external file like this:</p>
  <pre><code>Views/ Products/ index.php
  
  &lt;script src=&quot;/ajaxFolder/ajax_operation.js&quot;&gt;&lt;/script&gt;
  
  Controllers/Product.php
  
  public function index()
  {
      return view(&quot;Products/index&quot;);
  } 
  </code></pre>
  <p>How can I achieve that since controller load php file?</p>
  <p>Thanks.</p>