本文整理汇总了PHP中grocery_CRUD::unset_jquery_ui方法的典型用法代码示例。如果您正苦于以下问题:PHP grocery_CRUD::unset_jquery_ui方法的具体用法?PHP grocery_CRUD::unset_jquery_ui怎么用?PHP grocery_CRUD::unset_jquery_ui使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类grocery_CRUD
的用法示例。
在下文中一共展示了grocery_CRUD::unset_jquery_ui方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generate_crud
protected function generate_crud($table, $subject = '')
{
// create CRUD object
$this->load->library('Grocery_CRUD');
$crud = new grocery_CRUD();
$crud->set_table($table);
// auto-generate subject
if (empty($subject)) {
$crud->set_subject(humanize(singular($table)));
}
// load settings from: application/config/grocery_crud.php
$this->load->config('grocery_crud');
$this->mCrudUnsetFields = $this->config->item('grocery_crud_unset_fields');
if ($this->config->item('grocery_crud_unset_jquery')) {
$crud->unset_jquery();
}
if ($this->config->item('grocery_crud_unset_jquery_ui')) {
$crud->unset_jquery_ui();
}
if ($this->config->item('grocery_crud_unset_print')) {
$crud->unset_print();
}
if ($this->config->item('grocery_crud_unset_export')) {
$crud->unset_export();
}
if ($this->config->item('grocery_crud_unset_read')) {
$crud->unset_read();
}
foreach ($this->config->item('grocery_crud_display_as') as $key => $value) {
$crud->display_as($key, $value);
}
// other custom logic to be done outside
$this->mCrud = $crud;
return $crud;
}
示例2: harga
public function harga()
{
$crud = new grocery_CRUD();
$crud->set_theme('bootstrap');
$crud->set_subject('Harga Paket Layanan');
$crud->set_table('p_price_nw_serv_provider');
$crud->columns('provider_id', 'p_nw_service_id', 'price_otc', 'price_mrc');
$crud->display_as('provider_id', 'Nama Provider')->display_as('p_nw_service_id', 'Paket')->display_as('price_otc', 'Harga OTC')->display_as('price_mrc', 'Harga MRC');
$crud->set_relation('provider_id', 'provider', 'provider_name');
$crud->set_relation('p_nw_service_id', 'p_nw_service', 'package');
$crud->unset_print();
$crud->unset_jquery_ui();
$crud->unset_export();
$output = $crud->render();
$this->_example_output($output);
}