Update syntax.md

This commit is contained in:
Ivan Shalganov 2014-05-19 10:13:29 +04:00
parent 9f3b3b861b
commit 5c2b10e1cb
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Example outputs next HTML code:
```
`{$user.id}` and `{$user['id']}` are same:
```smarty
<div class="user">Hello, <a href="/users/{$user['id']}">{$user.['name']}</a>.</div>
<div class="user">Hello, <a href="/users/{$user['id']}">{$user['name']}</a>.</div>
```
В случае объекта, доступ к его свойствам осущесвляется так как и в PHP — через оператор `->`: