Scottchiefbaker/master (#1019)

* Add a PSR-4 loading script to allow Smarty to be used without Composer
authored-by: Scott Baker <scott@perturb.org>
This commit is contained in:
Simon Wisselink
2024-05-24 00:21:02 +02:00
committed by GitHub
parent 3293a873bd
commit 61db287b8f
3 changed files with 51 additions and 0 deletions

View File

@ -25,9 +25,17 @@ Here's how you create an instance of Smarty in your PHP scripts:
```php
<?php
// Instantiated via composer
require 'vendor/autoload.php';
use Smarty\Smarty;
$smarty = new Smarty();
// or ...
// Instantiated directly
require("/path/to/smarty/libs/Smarty.class.php");
use Smarty\Smarty;
$smarty = new Smarty();
```
Now that the library files are in place, it's time to set up the Smarty