show/object: render preview for stored objects only
This commit is contained in:
parent
3e54af435b
commit
72961586c5
|
@ -4,7 +4,10 @@
|
|||
|
||||
<div class="content">
|
||||
<?= $this->form ?>
|
||||
<pre>
|
||||
<?= $this->escape($form->getObject()) ?>
|
||||
</pre>
|
||||
<?php
|
||||
$object = $form->getObject();
|
||||
if ($object->hasBeenLoadedFromDb()) {
|
||||
echo '<pre>' . $this->escape($object) . '</pre>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue