• 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:
    S12_2823
    ProductCode:
    S12_2823
    ProductName:
    2002 Suzuki XREO
    ProductName:
    2002 Suzuki XREO
    ProductLine:
    Motorcycles
    ProductLine:
    Motorcycles
    ProductScale:
    1:12
    ProductScale:
    1:12
    ProductVendor:
    Unimax Art Galleries
    ProductVendor:
    Unimax Art Galleries
    ProductDescription:
    Official 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 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:
    9997
    QuantityInStock:
    9997
    BuyPrice:
    66.27
    BuyPrice:
    66.27
    MSRP:
    150.62
    MSRP:
    150.62