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

@@ -26,6 +26,8 @@ on the functions you are supposed to provide.
<?php
use Smarty\Smarty;
/**
* MySQL Resource
@@ -103,7 +105,7 @@ on the functions you are supposed to provide.
}
require_once 'libs/Smarty.class.php';
$smarty = new Smarty();
$smarty->registerResource('mysql', new My_Resource_Mysql());