⚠ 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

Config help with Alternate path layout



wclark
  • profile picture
  • Member

Posted 28 January 2012 - 19:03 PM

Hi there,

I have application and system under the site_root. ie:

/application
----/config
----/database
----/etc...
/media
/html
----/index.php <- main codeigniter index in site_root
/system

I adjusted 2 lines in /libraries/grocery_crud.php because I also moved your media directory under site_root

starting at line 2114

protected $default_theme_path = '../assets/grocery_crud/themes';
protected $default_language_path= '../assets/grocery_crud/languages';


I am using your example tables with your example.php controller and view.

The page loads now, but the formatting is not being displayed. I get the data and column headings, etc, but no layout, no colors.
I suspect this is a problem with the relative paths in the css files. Before I started digging further, I thought I would ask if there is an easy way to use my alternate path layout with grocery CRUD.

Thanks for a great library!
Bill Clark

wclark
  • profile picture
  • Member

Posted 28 January 2012 - 20:35 PM

Nevermind. I decided to put the media directory in site_root. Works great!