How to access the record on a custom page?
I have tried with $record, $model, etc, nothing works
Solution
What I do is instead of extending a
Then the
example:
Page, I extend to a ViewRecord and overwrite the $view paramater.Then the
$record is usable in the view and actions work.example: