mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-20 16:05:20 +02:00
Update code examples to use Smarty\Smarty and autoload instead of require_once calls and new Smarty
This commit is contained in:
@@ -31,6 +31,8 @@ example.
|
||||
|
||||
<?php
|
||||
|
||||
use Smarty\Smarty;
|
||||
|
||||
/**
|
||||
* MySQL Resource
|
||||
*
|
||||
@@ -107,7 +109,7 @@ example.
|
||||
}
|
||||
|
||||
|
||||
require_once 'libs/Smarty.class.php';
|
||||
|
||||
$smarty = new Smarty();
|
||||
$smarty->registerResource('mysql', new My_Resource_Mysql());
|
||||
|
||||
|
Reference in New Issue
Block a user