Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Fixing Issue "Module" class not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Dec 8, 2015
1 parent cc967fc commit 7f58d65
Show file tree
Hide file tree
Showing 6 changed files with 7,360 additions and 5 deletions.
35 changes: 35 additions & 0 deletions application/config/grocery_crud.php
@@ -0,0 +1,35 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//For view all the languages go to the folder assets/grocery_crud/languages/
$config['grocery_crud_default_language'] = 'english';

// There are only three choices: "uk-date" (dd/mm/yyyy), "us-date" (mm/dd/yyyy) or "sql-date" (yyyy-mm-dd)
$config['grocery_crud_date_format'] = 'uk-date';

// The default per page when a user firstly see a list page
$config['grocery_crud_default_per_page'] = 10;

$config['grocery_crud_file_upload_allow_file_types'] = 'gif|jpeg|jpg|png|tiff|doc|docx|txt|odt|xls|xlsx|pdf|ppt|pptx|pps|ppsx|mp3|m4a|ogg|wav|mp4|m4v|mov|wmv|flv|avi|mpg|ogv|3gp|3g2';
$config['grocery_crud_file_upload_max_file_size'] = '20MB'; //ex. '10MB' (Mega Bytes), '1067KB' (Kilo Bytes), '5000B' (Bytes)

//You can choose 'ckeditor','tinymce' or 'markitup'
$config['grocery_crud_default_text_editor'] = 'ckeditor';
//You can choose 'minimal' or 'full'
$config['grocery_crud_text_editor_type'] = 'full';

//The character limiter at the list page, zero(0) value if you don't want character limiter at your list page
$config['grocery_crud_character_limiter'] = 30;

//All the forms are opening with dialog forms without refreshing the page once again.
//IMPORTANT: PLease be aware that this functionality is still in BETA phase and it is
//not suggested to use this in production mode
$config['grocery_crud_dialog_forms'] = false;

//Having some options at the list paging. This is the default one that all the websites are using.
//Make sure that the number of grocery_crud_default_per_page variable is included to this array.
$config['grocery_crud_paging_options'] = array('10','25','50','100');

//Default theme for grocery CRUD
$config['grocery_crud_default_theme'] = 'flexigrid';

//The environment is important so we can have specific configurations for specific environments
$config['grocery_crud_environment'] = 'production';
8 changes: 4 additions & 4 deletions application/libraries/Enqueue.php
Expand Up @@ -24,7 +24,7 @@ class Enqueue {
* @since 3.0.1
*/
public function js( $script, $path = null ) {
$this->scripts[] = ( $path === null ) ? $this->path_js . $script : $path . $script;
$this->scripts[] = ( $path === null ) ? base_url() . $this->path_js . $script : $path . $script;
}

/**
Expand All @@ -39,7 +39,7 @@ public function js( $script, $path = null ) {
* @since 3.0.1
*/
public function css( $style, $path = null ) {
$this->styles[] = ( $path === null ) ? $this->path_css . $style : $path . $style;
$this->styles[] = ( $path === null ) ? base_url() . $this->path_css . $style : $path . $style;
}

/**
Expand All @@ -54,7 +54,7 @@ public function css( $style, $path = null ) {
*/
public function load_js() {
foreach( $this->scripts as $script ) {
echo '<script src="' . base_url() . $script . '.js"></script>'."\n";
echo '<script src="' . $script . '.js"></script>'."\n";
}
}

Expand All @@ -70,7 +70,7 @@ public function load_js() {
*/
public function load_css() {
foreach( $this->styles as $style ) {
echo '<link rel="stylesheet" href="' . base_url() . $style . '.css" />'."\n";
echo '<link rel="stylesheet" href="' . $style . '.css" />'."\n";
}
}
}

0 comments on commit 7f58d65

Please sign in to comment.