I'm trying to serialize the Form object within a view so:
<?php $form = ActiveForm::begin(); ?>
<?php $largeString=serialize($form); ?>
Because I always get the following error:
Serialization of 'Closure' is not allowed
The PHP manual guarantees that you can seralize anything; What could be the problem? Thank you