New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Access $old variable in plain php

Frederik Heyninck May 8, 2019 by Frederik Heyninck

Is there a way to access the statamic variables like {{ old:key }} in plain php in the template?

<?php
var_dump($old);
?>

Does not seem to work.

Answered by Frederik Heyninck!
>>>>>>> Answered <<<<<<<
3 Replies
2 Followers