⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Assets not loading correctly?



Septech
  • profile picture
  • Member

Posted 26 May 2017 - 00:13 AM

Nevermind, fixed it - base URL wasn't set correctly in the config file

 

Hello,

 

I came across grocerycrud and decided to give it a try. Followed all steps to install, everything loaded fine from the database, etc, except for the assets aren't loading the css, javascript...When looking at the source code it displays the paths correctly from there such as: 

 

<link type="text/css" rel="stylesheet" href="localhost/web/assets/grocery_crud/themes/flexigrid/css/flexigrid.css" />

 

but when I click that link to see if it'll direct me to the flexigrid.css file, it displays a 404 File Not Found and the URL structure is this:

http://localhost/web/index.php/main/web/assets/grocery_crud/themes/flexigrid/css/flexigrid.css

Using the latest version of CodeIgniter and latest of grocerycrud....I'm sure this is a simple fix but I'm not familiar enough with a framework to locate it easily yet...