mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-30 07:57:14 +02:00
Fixed invalid classname in example in docs.
This commit is contained in:
@ -167,7 +167,7 @@ class My_GuestBook extends Smarty {
|
|||||||
Now, we can use `My_GuestBook` instead of `Smarty` in our scripts:
|
Now, we can use `My_GuestBook` instead of `Smarty` in our scripts:
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
$smarty = new Smarty_GuestBook();
|
$smarty = new My_GuestBook();
|
||||||
$smarty->assign('name', 'Ned');
|
$smarty->assign('name', 'Ned');
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user