Skip to main content

CRUD Codeigniter simple

terkait dengan project yang deadline anda bisa manfaat kan ini Grocery



lebih simple dengan tampilan seperti ini include dengan banyak kebutuhan
bahagia bro hee
kenapa?
hanya dengan waktu sebentar pekerjaan anda selesai
berikut sedikit contoh source code

function full_example()
{
$crud = new grocery_CRUD();
 
$crud->set_table('customers') //nama tabel
        ->set_subject('Customer') //set subject nya
        ->columns('customerName','contactLastName','phone','city','country','creditLimit')
        ->display_as('customerName','Name')
        ->display_as('contactLastName','Last Name');
 
$crud->fields('customerName','contactLastName','phone','city','country','creditLimit');//field yg nanti akandi tampilkan ketika menambahkan data
$crud->required_fields('customerName','contactLastName'); //untuk validasi form input yang tidak boleh kosong
 
$output = $crud->render(); 
 
$this->_example_output($output);//menampilkan yg di render


sumber
http://www.grocerycrud.com/examples/full_example

Comments

Popular posts from this blog

Membuat chating dengan ratchet + php + mysql

Berikut tutorial video nya silahkan tonton. terima kasih

Laravel scantum authorization, graphql lighthouse

Membuat grafik dengan codeigniter+google chart simple

1. buat controller baru dengan nama Grafik.php 2. buat view nya dengan nama vgrafik, atau anda dapat copy paste dari source official google  tinggal menyesuaikan grafik nya lanjutan 3. hasil nya