Open cesarliws opened 10 years ago
For now, it is not going to work. This is a new feature of GroceryCRUD that is not supported in No-CMS yet.
Understood, thank you.
check if your the console if your jquery is loading or not, mot of the time when I have this problem it is due to the fact that jquery has not loaded.
I tried the following for my controller
public function unprocessed_transcript_applications()
{
$crud = new Grocery_CRUD();
$crud->set_table("applications");
$crud->where("status", "active");
$crud->set_subject("Unprocessed Transcript");
$output = $crud->render();
var_dump($output);
//echo "<pre>";
//print_r($output);
//echo "</pre>";
$this->_view_output($output);
//$this->view('unprocessed_transcript_applications_view');
//echo "Hi";
}
public function _view_output($output = null)
{
$this->view('unprocessed_transcript_apaplications_view.php', $output);
}
//and
<?php var_dump($output); ?>
for my view
with the following error message
Fatal error: Call to undefined method Grocery_CRUD::cms_lang() in /var/www/html/transcript/assets/grocery_crud/themes/no-flexigrid/views/list.php on line 24
A PHP Error was encountered
Severity: Error
Message: Call to undefined method Grocery_CRUD::cms_lang()
Filename: views/list.php
Line Number: 24
Backtrace:
note that the grocery_CRUD library was loaded in my constructor and this happened in nocms
Is your controller extends CMS_Controller?
Yes and I also tried CI_Controller and none worked.
I'm sorry. The grocery crud was heavily modified here.
You will have a better luck by extending CMS_CRUD_Controller
.
Please look https://github.com/goFrendiAsgard/No-CMS/blob/master/modules/blog/controllers/Manage_article.php and modify it as you need.
Thanks so very much for your work - nocms and the kind of instant response.
But I have always wondered how i can get to see all the predefined functions (callbacks included) in nocms and or how I can declare my own callback functions. Please guide me. Thanks
Do you mean hook? Please take a look at https://github.com/goFrendiAsgard/No-CMS/blob/master/doc/tutorial/programmer_hook.md
when "application/config/grocery_crud.php" $config['grocery_crud_dialog_forms'] = TRUE;
Editing the record in modal dialog:
After save the record, nocms is not working appropriately:
This is the content os the small memo in the screenshot:
{"success":true,"insert_primary_key":1,"success_message":"
Os dados foram armazenados no banco de dados. Alterar Country<\/a> <\/p>","success_list_url":"http:\/\/localhost\/madobras\/nordrassil_demo\/manage_country\/index\/success\/1"}
Is this feature suppose to work?