Skip to content

Commit 4b521df

Browse files
committed
Clarify that we are using an entity to manage data
1 parent 4e5db76 commit 4b521df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ This example uses the `default behaviour configuration <configuration.rst>`__ us
109109
.. code:: php
110110
111111
<?php
112-
$entity = [
112+
$entity = new Entity([
113113
'photo' => 'imageFile.jpg',
114114
'photo_dir' => '7'
115-
];
115+
]);
116116
117117
echo $this->Html->link('../files/example/image/' . $entity->photo_dir . '/' . $entity->photo);
118118
?>

0 commit comments

Comments
 (0)