connector-php icon indicating copy to clipboard operation
connector-php copied to clipboard

Hi laravel9 Treegird Connector issue

Open mesutgunay opened this issue 3 years ago • 0 comments

Hi i use laravel9 on TreeGridConnector but this not working;

namespace App\Http\Controllers;

use App\Models\Test; use Illuminate\Http\Request; use Dhtmlx\Connector\TreeGridConnector;

class TestController extends Controller { public function index() { return view('test'); }

public function test_get()
{
$data = Test::get()->toArray();
$treegrid = new TreeGridConnector(null, "PHPLaravel");
$treegrid->configure($data,"id","name","", "parent_id");
 $treegrid->render();

}

}

Thic code return http500 if i changed this line //$treegrid->configure($data,"id","name","", "parent_id"); //
$treegrid->configure(new Test(),"id","name","", "parent_id"); array_key_exsist()

mesutgunay avatar Jan 05 '23 13:01 mesutgunay