Jump to content


wildfandango

Member Since 13 Jun 2017
Offline Last Active Aug 30 2018 09:10 AM
-----

Posts I've Made

In Topic: Unexpected token json

28 August 2018 - 10:58 AM

In my case the problem is that you cannot call $this->load->view('login_crud.php',$output); directly.
 
It says so clearly in the documentation and I have done it hundreds of times correctly :(
 
The call to the view should be like this:
 

$this->GCRUD_output('fullscreen_crud.php',$output);

 

where

 

    function GCRUD_output($template = "",$output = null) {
        if (isset($output->isJSONResponse) && $output->isJSONResponse) {
            header('Content-Type: application/json; charset=utf-8');
            echo $output->output;
            exit;
        }


        $this->load->view($template,$output);
    }

 

 


In Topic: Unexpected token json

27 August 2018 - 04:06 PM

Hi, i have the same error in this CRUD, can un share your solution?

 

        $crud = $this->GCRUD_getGroceryCrudEnterprise();
        $crud->setTable('login_usu');
        $crud->setSubject("Datos del usuario","Lista de usuarios");
        $crud->setTheme("bootstrap-v4");

        $crud->columns(['id','nombre','email']);
        $crud->fields(['id','nombre','email','clave']);

        $crud->setPrimaryKey('id',"login_usu");

        $crud->displayAs([
            'id' => 'ID',
            'nombre' => 'Nombre',
            'email' => 'eMail',
            'clave' => 'Clave'
            ]);

        $crud->defaultOrdering('login_usu.nombre', 'asc');

        $crud->requiredFields(['nombre','clave','email']);
        $crud->readOnlyFields(['id']);

        $output = $crud->render();
        $this->load->view('login_crud.php',$output);


In Topic: How to create DEPENDENT DROP-DOWNS in the enterprise edition?

27 August 2018 - 02:35 PM

Wishing to try it, thank you!


In Topic: Problem with the size and content of the columns after upgrading to 2.6.0

27 August 2018 - 02:34 PM

Hi, anyone with a similar problem or advice?
 
Thank you 

In Topic: setRelation returns similar values not only the exact

05 March 2018 - 10:39 AM

After upgrading to version 2.5.1 the problem has been fixed