• 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_4698
    ProductCode:
    S10_4698
    ProductName:
    2003 Harley-Davidson Eagle Drag Bike
    ProductName:
    2003 Harley-Davidson Eagle Drag Bike
    ProductLine:
    Motorcycles
    ProductLine:
    Motorcycles
    ProductScale:
    1:10
    ProductScale:
    1:10
    ProductVendor:
    Red Start Diecast
    ProductVendor:
    Red Start Diecast
    ProductDescription:
    Model features, official Harley Davidson logos and insignias, detachable rear wheelie bar, heavy diecast metal with resin parts, authentic multi-color tampo-printed graphics, separate engine drive belts, free-turning front fork, rotating tires and rear racing slick, certificate of authenticity, detailed engine, display stand , precision diecast replica, baked enamel finish, 1:10 scale model, removable fender, seat and tank cover piece for displaying the superior detail of the v-twin engine
    ProductDescription:
    Model features, official Harley Davidson logos and insignias, detachable rear wheelie bar, heavy diecast metal with resin parts, authentic multi-color tampo-printed graphics, separate engine drive belts, free-turning front fork, rotating tires and rear racing slick, certificate of authenticity, detailed engine, display stand , precision diecast replica, baked enamel finish, 1:10 scale model, removable fender, seat and tank cover piece for displaying the superior detail of the v-twin engine
    QuantityInStock:
    5582
    QuantityInStock:
    5582
    BuyPrice:
    91.02
    BuyPrice:
    91.02
    MSRP:
    193.66
    MSRP:
    193.66