Reputation: 1975
I do some calculations in the controller, and pass the data to my view like this.
return View::make('fend.clist', compact('detail_'));
From this view controller "fend.clist" I'd like to open another view (blade) along with the 'detail_' variable which basically has some data that I need to show there. I tried POSTing it, but I wasn't able to recieve the data completely. How else can I pass data from one view to another view?
Upvotes: 1
Views: 497
Reputation: 1262
By using the sessions, first put:
Session::put(['name'=>'value']);
Then get:
Session::get('name');
Upvotes: 1
Reputation: 699
You must nest sub-view to view and pass data to sub-view.
return View::make('fend.clist')->nest('fend.detail', compact('detail_'));
More info in docs
Upvotes: 0