⚠ 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

Bootstrap issues - new installation appears different from demo



michaeljean@ncf.ca

michaeljean@ncf.ca
  • profile picture
  • Member

Posted 05 June 2016 - 23:29 PM

Hi,

 

I just installed bootstrap theme and tried to use it but it does not appear ok, some elements missing etc.  My controller looks like:

            $crud = new grocery_CRUD();
            $crud->set_theme('bootstrap');
            $crud->set_table( 'fm_session_activities' );
            $crud->set_language( $this->session->userdata( 'language' ) );
            $crud->unset_add();
            $crud->unset_delete();
            $crud->set_subject( lang( 'session_activity' ) );
            $crud->unset_read();
            $output = $crud->render();
            $this->load->view( 'templates/responsive/header', $data );
            $this->load->view( 'templates/responsive/contents', $output );
            $this->load->view( 'templates/responsive/footer' );

[attachment=1121:Bootstrap1.png]


michaeljean@ncf.ca

michaeljean@ncf.ca
  • profile picture
  • Member

Posted 06 June 2016 - 11:37 AM

After changing the template adding the correct styles (same as demo) it is working ok

<link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/bootstrap/bootstrap.min.css?v1.5.4'); ?>" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/font-awesome/css/font-awesome.min.css?v1.5.4'); ?>" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/common.css?v1.5.4'); ?>" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/list.css?v1.5.4'); ?>" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/general.css?v1.5.4'); ?>" type="text/css" />
        <link rel="stylesheet" href="<?php echo base_url('assets/grocery_crud/themes/bootstrap/css/plugins/animate.min.css?v1.5.4'); ?>" type="text/css" />'); ?>