I am attempting to integrate grocerycrud with the boot strap SB Admin 2 theme.
I am receiving the following
Uncaught TypeError: $(...).numeric is not a function(anonymous function) @ flexigrid.js:217m.Callbacks.j @ jquery-1.11.1.min.js:2m.Callbacks.k.fireWith @ jquery-1.11.1.min.js:2m.extend.ready @ jquery-1.11.1.min.js:2J @ jquery-1.11.1.min.js:2
And the actions in the flexgrid table do not work (pagination, searching, etc)
I do not know where to start to troubleshoot this error.
Here is my controller
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Incentives extends CI_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->helper('url'); $this->load->library('grocery_CRUD'); } public function index() { $this->load->view('welcome_message'); } public function dod() { $crud = new grocery_CRUD(); $crud->set_table('DOD'); $crud->columns('clubid','p_name','p_email','si_name','si_email','district_url'); $crud->display_as('p_name','Principal'); $crud->display_as('p_email','Email'); $crud->display_as('si_name','Superintendent'); $crud->display_as('si_email','Email'); $crud->add_action('District','/assets/glyphicons/glyphicons-152-new-window.png','','',array($this,'view_district')); $crud->unset_add(); $crud->unset_delete(); $crud->unset_edit(); $output = $crud->render(); $this->_dod_output($output); } function view_district($primary_key,$row) { $str = preg_replace('#^https?://#', '', $row->district_url); return 'http://'.$str; } function _dod_output($output = null) { $page_title = "District of Distinction"; $this->load->vars( array( 'page_title' => $page_title) ); // <- This puts $html_title into the context for the view() below $this->load->view('templates/header',$output); //$this->load->view('reports/incentives/dod',$output); $this->load->view('reports/incentives/testing',$output); $this->load->view('templates/footer'); } }
and the header view
<?php /** * Created by PhpStorm. * User: jmoore * Date: 5/7/15 * Time: 8:34 AM */ ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <?php if( isset($page_title) && $page_title != '' ){ echo '<title>NBCIS v2.0 ' . $page_title . '</title>'; } ?> <?php foreach($css_files as $file): ?> <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" /> <?php endforeach; ?> <?php foreach($js_files as $file): ?> <script src="<?php echo $file; ?>"></script> <?php endforeach; ?> <!-- Bootstrap Core CSS --> <link href="<?php echo base_url('assets/css/bootstrap.min.css');?>" rel="stylesheet"> <!-- MetisMenu CSS --> <link href="<?php echo base_url('assets/css/metisMenu.min.css');?>" rel="stylesheet"> <!-- Timeline CSS --> <link href="<?php echo base_url('assets/css/timeline.css');?>" rel="stylesheet"> <!-- Custom CSS --> <link href="<?php echo base_url('assets/css/sb-admin-2.css');?>" rel="stylesheet"> <!-- Morris Charts CSS --> <link href="<?php echo base_url('assets/css/morris.css');?>" rel="stylesheet"> <!-- Custom Fonts --> <link href="<?php echo base_url('assets/css/font-awesome.min.css" rel="stylesheet');?>" type="text/css"> </head>
And the main view
<body><!-- Navigation --> <div id="wrapper"> <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html">SB Admin v2.0</a> </div> <!-- /.navbar-header --> <ul class="nav navbar-top-links navbar-right"> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-messages"> <li> <a href="#"> <div> <strong>John Smith</strong> <span class="pull-right text-muted"> <em>Yesterday</em> </span> </div> <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <strong>John Smith</strong> <span class="pull-right text-muted"> <em>Yesterday</em> </span> </div> <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <strong>John Smith</strong> <span class="pull-right text-muted"> <em>Yesterday</em> </span> </div> <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div> </a> </li> <li class="divider"></li> <li> <a class="text-center" href="#"> <strong>Read All Messages</strong> <i class="fa fa-angle-right"></i> </a> </li> </ul> <!-- /.dropdown-messages --> </li> <!-- /.dropdown --> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-tasks"> <li> <a href="#"> <div> <p> <strong>Task 1</strong> <span class="pull-right text-muted">40% Complete</span> </p> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%"> <span class="sr-only">40% Complete (success)</span> </div> </div> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <p> <strong>Task 2</strong> <span class="pull-right text-muted">20% Complete</span> </p> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%"> <span class="sr-only">20% Complete</span> </div> </div> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <p> <strong>Task 3</strong> <span class="pull-right text-muted">60% Complete</span> </p> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%"> <span class="sr-only">60% Complete (warning)</span> </div> </div> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <p> <strong>Task 4</strong> <span class="pull-right text-muted">80% Complete</span> </p> <div class="progress progress-striped active"> <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%"> <span class="sr-only">80% Complete (danger)</span> </div> </div> </div> </a> </li> <li class="divider"></li> <li> <a class="text-center" href="#"> <strong>See All Tasks</strong> <i class="fa fa-angle-right"></i> </a> </li> </ul> <!-- /.dropdown-tasks --> </li> <!-- /.dropdown --> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-alerts"> <li> <a href="#"> <div> <i class="fa fa-comment fa-fw"></i> New Comment <span class="pull-right text-muted small">4 minutes ago</span> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <i class="fa fa-twitter fa-fw"></i> 3 New Followers <span class="pull-right text-muted small">12 minutes ago</span> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <i class="fa fa-envelope fa-fw"></i> Message Sent <span class="pull-right text-muted small">4 minutes ago</span> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <i class="fa fa-tasks fa-fw"></i> New Task <span class="pull-right text-muted small">4 minutes ago</span> </div> </a> </li> <li class="divider"></li> <li> <a href="#"> <div> <i class="fa fa-upload fa-fw"></i> Server Rebooted <span class="pull-right text-muted small">4 minutes ago</span> </div> </a> </li> <li class="divider"></li> <li> <a class="text-center" href="#"> <strong>See All Alerts</strong> <i class="fa fa-angle-right"></i> </a> </li> </ul> <!-- /.dropdown-alerts --> </li> <!-- /.dropdown --> <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#"> <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i> </a> <ul class="dropdown-menu dropdown-user"> <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a> </li> <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a> </li> <li class="divider"></li> <li><a href="login.html"><i class="fa fa-sign-out fa-fw"></i> Logout</a> </li> </ul> <!-- /.dropdown-user --> </li> <!-- /.dropdown --> </ul> <!-- /.navbar-top-links --> <div class="navbar-default sidebar" role="navigation"> <div class="sidebar-nav navbar-collapse"> <ul class="nav" id="side-menu"> <li class="sidebar-search"> <div class="input-group custom-search-form"> <input type="text" class="form-control" placeholder="Search..."> <span class="input-group-btn"> <button class="btn btn-default" type="button"> <i class="fa fa-search"></i> </button> </span> </div> <!-- /input-group --> </li> <li> <a href="index.html"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a> </li> <li> <a href="#"><i class="fa fa-bar-chart-o fa-fw"></i> Charts<span class="fa arrow"></span></a> <ul class="nav nav-second-level"> <li> <a href="flot.html">Flot Charts</a> </li> <li> <a href="morris.html">Morris.js Charts</a> </li> </ul> <!-- /.nav-second-level --> </li> <li> <a href="tables.html"><i class="fa fa-table fa-fw"></i> Tables</a> </li> <li> <a href="forms.html"><i class="fa fa-edit fa-fw"></i> Forms</a> </li> <li> <a href="#"><i class="fa fa-wrench fa-fw"></i> UI Elements<span class="fa arrow"></span></a> <ul class="nav nav-second-level"> <li> <a href="panels-wells.html">Panels and Wells</a> </li> <li> <a href="buttons.html">Buttons</a> </li> <li> <a href="notifications.html">Notifications</a> </li> <li> <a href="typography.html">Typography</a> </li> <li> <a href="icons.html"> Icons</a> </li> <li> <a href="grid.html">Grid</a> </li> </ul> <!-- /.nav-second-level --> </li> <li> <a href="#"><i class="fa fa-sitemap fa-fw"></i> Multi-Level Dropdown<span class="fa arrow"></span></a> <ul class="nav nav-second-level"> <li> <a href="#">Second Level Item</a> </li> <li> <a href="#">Second Level Item</a> </li> <li> <a href="#">Third Level <span class="fa arrow"></span></a> <ul class="nav nav-third-level"> <li> <a href="#">Third Level Item</a> </li> <li> <a href="#">Third Level Item</a> </li> <li> <a href="#">Third Level Item</a> </li> <li> <a href="#">Third Level Item</a> </li> </ul> <!-- /.nav-third-level --> </li> </ul> <!-- /.nav-second-level --> </li> <li> <a href="#"><i class="fa fa-files-o fa-fw"></i> Sample Pages<span class="fa arrow"></span></a> <ul class="nav nav-second-level"> <li> <a href="blank.html">Blank Page</a> </li> <li> <a href="login.html">Login Page</a> </li> </ul> <!-- /.nav-second-level --> </li> </ul> </div> <!-- /.sidebar-collapse --> </div> <!-- /.navbar-static-side --> </nav> <!-- End of header--> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">District of Distinction</h1> </div> </div> <div> <?php echo $output; ?> </div> </div> </div> <!-- /#wrapper --> <!-- jQuery --> <script src="<?php echo base_url('assets/js/jquery.min.js');?>"></script> <!-- Bootstrap Core JavaScript --> <script src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> <!-- Metis Menu Plugin JavaScript --> <script src=".<?php echo base_url('assets/js/metisMenu.min.js');?>"></script> <!-- Morris Charts JavaScript --> <script src=".<?php echo base_url('assets/js/raphael-min.js');?>"></script> <script src="<?php echo base_url('assets/js/morris.min.js');?>"></script> <script src="<?php echo base_url('assets/js/morris-data.js');?>"></script> <!-- Custom Theme JavaScript --> <script src="<?php echo base_url('assets/js/sb-admin-2.js');?>"></script>
Screenshot is attached.
URL is http://nbcisv2.betaclub.org/index.php/incentives/dod/