Update code examples to use Smarty\Smarty and autoload instead of require_once calls and new Smarty

This commit is contained in:
Simon Wisselink
2023-02-06 15:18:47 +01:00
parent cf84802072
commit 7a323b7345
21 changed files with 44 additions and 28 deletions

View File

@@ -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());