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 for CSS for js
& 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" />
codeigner-> css- & hello.css
codeigner-> JS- & gt; Hello JS
Comments
Post a Comment