Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi laravel9 Treegird Connector issue #20

Open
mesutgunay opened this issue Jan 5, 2023 · 0 comments
Open

Hi laravel9 Treegird Connector issue #20

mesutgunay opened this issue Jan 5, 2023 · 0 comments

Comments

@mesutgunay
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant