⚠ 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

Probleme with crud display



Meleagan

Meleagan
  • profile picture
  • Member

Posted 02 March 2013 - 15:20 PM

Hi, i'm a newB on Crud,

 

I've got a matter with the display, it shows with no css, only text.

 

I've shearch on the explanations but did not found anything interesting.

 

Here is my controller if you wanna read it :

 

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Type_matiere_premiere extends CI_Controller
{
	function __construct()
    {
        parent::__construct();
        $this->load->library('grocery_CRUD');
    }

	function index()
	{
		$this->afficheCrud();
	}

	function afficheCrud()
	{
		$crud = new grocery_CRUD();
 
	    $crud->set_theme('datatables');
	    $crud->set_table('type_matiere_premiere');

	    $crud->add_action('More', '', '','ui-icon-plus');

		$output = $crud->render();
		$this->crudOutput($output);
	}

	function crudOutput($output = null)
 
    {
        $this->load->view('matiere_premieres/type_matiere_premiere', $output);   
    }
}

 

If you have an idea, pls tell me !


Meleagan

Meleagan
  • profile picture
  • Member

Posted 02 March 2013 - 20:44 PM

Anyone have an idea ?

Pls help the noob !


php_lover

php_lover
  • profile picture
  • Member

Posted 03 March 2013 - 09:01 AM

Please upload your output snapshot or paste Asset folder outside from tha application folder type url

 

localhost/......./codeigniter/index.php/examples may be it works


Pikiwix

Pikiwix
  • profile picture
  • Member

Posted 12 March 2013 - 15:02 PM

Hello, 

 

please load CSS in your header, you have to load this : 

 

 

<link type="text/css" rel="stylesheet" href="<?php echo base_url() ?>assets/grocery_crud/themes/flexigrid/css/flexigrid.css">
<link type="text/css" rel="stylesheet" href="<?php echo base_url() ?>assets/grocery_crud/css/jquery_plugins/fancybox/jquery.fancybox.css">
<script src="<?php echo base_url() ?>assets/grocery_crud/js/jquery-1.8.2.min.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/themes/flexigrid/js/cookies.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/themes/flexigrid/js/flexigrid.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/themes/flexigrid/js/jquery.form.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/js/jquery_plugins/jquery.numeric.min.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/themes/flexigrid/js/jquery.printElement.min.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/js/jquery_plugins/jquery.fancybox.pack.js"></script>
<script src="<?php echo base_url() ?>assets/grocery_crud/js/jquery_plugins/jquery.easing-1.3.pack.js"></script>
 

 

or you have a procedure here : 
 
 
bye

davidoster

davidoster
  • profile picture
  • Member

Posted 19 March 2013 - 14:21 PM

Since you are a beginner I would suggest you first play with the examples that Grocery CRUD comes with.

When you get familiar enough with the try to produce your own application.

 

Grocery CRUD sure does a lot for us but we need to have a good understanding of various technologies in order to benefit from it!!!