goFrendiAsgard / No-CMS

No-CMS, A CodeIgniter Based CMS Framework
299 stars 199 forks source link

$config['grocery_crud_dialog_forms'] = TRUE is not working #68

Open cesarliws opened 10 years ago

cesarliws commented 10 years ago

when "application/config/grocery_crud.php" $config['grocery_crud_dialog_forms'] = TRUE;

Editing the record in modal dialog: image

After save the record, nocms is not working appropriately:

image

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?

goFrendiAsgard commented 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.

cesarliws commented 10 years ago

Understood, thank you.

abdulwahidgul24085 commented 9 years ago

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.

bonsoirval commented 6 years ago

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:
bonsoirval commented 6 years ago

note that the grocery_CRUD library was loaded in my constructor and this happened in nocms

goFrendiAsgard commented 6 years ago

Is your controller extends CMS_Controller?

bonsoirval commented 6 years ago

Yes and I also tried CI_Controller and none worked.

goFrendiAsgard commented 6 years ago

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.

bonsoirval commented 6 years ago

Thanks so very much for your work - nocms and the kind of instant response.

bonsoirval commented 6 years ago

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

goFrendiAsgard commented 6 years ago

Do you mean hook? Please take a look at https://github.com/goFrendiAsgard/No-CMS/blob/master/doc/tutorial/programmer_hook.md