⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


leffert

Member Since 16 Apr 2017
Offline Last Active Nov 16 2017 08:13 PM
-----

Posts I've Made

In Topic: Error When inserting or editing a record

16 April 2017 - 09:39 PM

I also got this when trying to load css an js manually. GC loads different files dynamically.

So if you by any chance did the same mistake, you need to load them by:

// scripts from grocery crud...
if(isset($crud)){
$css_files=$crud->css_files ;
$js_files=$crud->js_files ; }
if(isset($css_files)){
	foreach($css_files as $file): ?>
		<link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
<?php endforeach; }?>
		
<?php	if(isset($js_files)){
        foreach($js_files as $file): ?>
		<script src="<?php echo $file; ?>"></script>
<?php endforeach; }?>