javascript - Codeigniter: how to access css files from different views? -


My problem is that I am unable to load my CSS and .js files onto my other views. Only one scene which My default_controller index () function can access css and .js files. There is no problem in the destination folder, as it can be accessed through the index function.

I want my CSS and .js files to be accessible for all my thoughts.

Add the following link to your header file

  & lt; Script src = "& lt ;? php echo base_url ()? & Gt; js / hallo jesus" type = "text / javascript" charset = "utf-8" & gt; & Lt; / Script & gt; & Lt; Link rel = "stylesheet" href = "& lt ;? php echo base_ url ()? & Gt; css / hello.css" type = "text / css" charset = "utf-8" />   

for CSS

  codeigner-> css- & hello.css   

for js

  codeigner-> JS- & gt; Hello JS    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -