Closed mgarimelHES closed 2 years ago
Hi @mgarimelHES,
You try dumping the variable in the controller. What if you get rid of the dump in the view and only keep the the one in the controller?
Hi @pllealfunes,
Thanks, I am trying to dump the variable in the form (step4) as shown in the class this week. I want to debug if the value has been passed from the controller to the view
Thanks
Hi @mgarimelHES -
After doing a redirect and "flashing" data to the session, you need to extract the data from the session using the session() helper. Then the extracted data can be passed to the view. It looks like you're missing these last two steps.
For an example see the PageController in Bookmark:
Susan,
I have done pretty similar, but it is not working for me, getting the variable not defined issue. I have tried to update the 'Bookmark' using a new variable called 'searchTerms2', same issue. I am struck here more than 2 days, not sure about the issue.
Thanks
ok, it is resolved, I have modified the 'create' and 'store' actions.
Thanks
I am following the design-c and using the Bookmark sample, trying to pass a variable and getting the 'undefined variable' as shown below -
I have following the following steps -
Any pointers will be great!
Thanks