im having problems with flexgrid crud misformatting
Maybe i have using a wrong pattern of dev for Grocery,
or some incompatibility wiith bootstrap
anyway thats my code :
please help me , im new in GC
the controller --->
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Users extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->library('session');
$this->load->database();
$this->load->model('users');
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
public function index()
{
echo "<script language='javascript' type='text/javascript'>
alert('no users to show...');
document.location='/gcerp'</script>";
} //end func
public function usercrud()
{
$wu = new Users(); //metodo em model users
if ($wu->isloged())
{
$crud = new grocery_CRUD();
$crud->set_table('users');
$crud->columns('name','email');
$crud->set_subject('Usuarios');
$output = $crud->render();
$this->load->view('header', $output);
$this->load->view('menuloged');
$this->load->view('bodyuser', $output );
$this->load->view('footer');
}else{
header("Location: ".'/gcerp');
}
} //end func
} // end class
*----------------------------------------------------------------------------*
the header view --->
<?php $this->load->helper('url'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>ERP Cloud edition</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="<?php base_url(); ?>assets/style.css" rel="stylesheet" type="text/css" >
</script>-->
<?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; ?>
</head>
<body id="headerPage" data-spy="scroll" data-target=".navbar" data-offset="60">
*------------------------------------------------------------------------*
the body view ---->
<div class="container-fluid bg-grey">
<div class="row">
<div class="col-sm-4">
<span class="glyphicon glyphicon-globe logo slideanim"></span>
</div>
<div class="col-sm-12">
<?php echo $output ; ?>
</div>
</div>
</div>