⚠ 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

missing flexgrid style and action buttons



fduque
  • profile picture
  • Member

Posted 03 December 2017 - 15:47 PM

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" >
  <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
  <link href="https://fonts.googleapis.com/css?family=Lato" 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>
 

 

 


Amit Shah
  • profile picture
  • Member

Posted 05 December 2017 - 00:49 AM

Well - the code seems to be correct - dont see any issue with the code as far. In order to check what is the real issue / cause, will like you to investigate in the debug panel -> network console ... if there are any css / js that were being called - are missing or what?

If there are - you need to fix them first. Then this issue of yours should automatically get resolved.

 

Happy GCing :)


fduque
  • profile picture
  • Member

Posted 05 December 2017 - 15:15 PM

Well - the code seems to be correct - dont see any issue with the code as far. In order to check what is the real issue / cause, will like you to investigate in the debug panel -> network console ... if there are any css / js that were being called - are missing or what?

If there are - you need to fix them first. Then this issue of yours should automatically get resolved.

 

Happy GCing :)

Thats right i checked it by debug panel -> network console

 

js and css are not loaded


fduque
  • profile picture
  • Member

Posted 07 December 2017 - 04:01 AM

 

Well - the code seems to be correct - dont see any issue with the code as far. In order to check what is the real issue / cause, will like you to investigate in the debug panel -> network console ... if there are any css / js that were being called - are missing or what?

If there are - you need to fix them first. Then this issue of yours should automatically get resolved.

 

Happy GCing :)

 

exploring dev tool networking i've found that erros, how to fix ?

 


Amit Shah
  • profile picture
  • Member

Posted 07 December 2017 - 06:11 AM

well - it seems the config file issue.

 

the base url u defined in is "localhost/gcerp"

rather the base_url must be "http://localhost/gcerp"

 

that should fix this issue.

 

Happy GCing :)


fduque
  • profile picture
  • Member

Posted 08 December 2017 - 16:53 PM

thats right , i´ve fixed it by lefting 'base_url' empty at the config.php

 

Thanks for all