• codeSample Codes

    public function products_management()
    {

    $this->config->load('grocery_crud');
    $this->config->set_item('grocery_crud_dialog_forms',true);
    $this->config->set_item('grocery_crud_dialog_color','pink darken-4');
    $this->config->set_item('grocery_crud_dialog_text_color','white');


    $crud = new grocery_CRUD();
    $crud->set_theme('materializecss'); // magic code
    $crud->set_table('products');
    $crud->set_subject('Product');
    $crud->unset_columns('productDescription');
    $crud->callback_column('buyPrice',array($this,'valueToEuro'));

    $output = $crud->render();

    $this->_example_output($output);
    }
  • editView Product
    ProductCode:
    S10_2016
    ProductCode:
    S10_2016
    ProductName:
    1996 Moto Guzzi 1100i
    ProductName:
    1996 Moto Guzzi 1100i
    ProductLine:
    Motorcycles
    ProductLine:
    Motorcycles
    ProductScale:
    1:10
    ProductScale:
    1:10
    ProductVendor:
    Highway 66 Mini Classics
    ProductVendor:
    Highway 66 Mini Classics
    ProductDescription:
    Official Moto Guzzi logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.
    ProductDescription:
    Official Moto Guzzi logos and insignias, saddle bags located on side of motorcycle, detailed engine, working steering, working suspension, two leather seats, luggage rack, dual exhaust pipes, small saddle bag located on handle bars, two-tone paint with chrome accents, superior die-cast detail , rotating wheels , working kick stand, diecast metal with plastic parts and baked enamel finish.
    QuantityInStock:
    6625
    QuantityInStock:
    6625
    BuyPrice:
    68.99
    BuyPrice:
    68.99
    MSRP:
    118.94
    MSRP:
    118.94