grocery crud

grocery crud
Judulnya bisa dibilang ngga nyambung, daripada bingung milih judul yang tepat, apa call back ya? Ceritanya setiap kali insert data ke database dari GroceryCrud yang muncul pesan seperti dibawah ini

{"success":true,"insert_primary_key":17,"success_message":"<p>Your data has been successfully stored into the database. Edit users<\/a> or <a href='http:\/\/localhost\/grocery2\/index.php\/examples\/user'>Go back to list<\/a><\/p>","success_list_url":"http:\/\/localhost\/grocery2\/index.php\/examples\/user\/success\/17"}

error tersebut setelah cek punya cek, disebabkan oleh salah satu file javascriptnya belum ikut khususnya

flexigrid-add.js

diasumsikan anda menggunakan flexigrid sebagai output tabelnya. Untuk file-file yang harus di include agar tampilan dan fungsi GroceryCRUD berjalan lancar adalah

<script src="/assets/grocery_crud/js/jquery-1.8.2.min.js"></script>
<script src="/assets/grocery_crud/js/jquery_plugins/jquery.chosen.min.js"></script>
<script src="/assets/grocery_crud/js/jquery_plugins/config/jquery.chosen.config.js"></script>
<script src="/assets/grocery_crud/themes/flexigrid/js/jquery.form.js"></script>
<script src="/assets/grocery_crud/themes/flexigrid/js/flexigrid-add.js"></script>
<link rel="stylesheet" href="/assets/themes/demo/css/newtab.css" type="text/css" />
<link rel="stylesheet" href="/assets/grocery_crud/css/jquery_plugins/chosen/chosen.css" type="text/css" />
<link rel="stylesheet" href="/assets/grocery_crud/themes/flexigrid/css/flexigrid.css" type="text/css" />

source diatas diambil dari link contoh groceryCRUD

Last Updated on 30 November 2017 by

Leave a comment

Your email address will not be published. Required fields are marked *