diff options
| author | Simon Wisselink <wisskid@users.noreply.github.com> | 2024-05-24 00:21:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 00:21:02 +0200 |
| commit | 61db287b8fd58b2f0a714f1007bd71059b9e52a9 (patch) | |
| tree | ba221cfc3cb0a8924bb2e842ec8d427a8685949d /docs | |
| parent | 3293a873bdc64bf55e0e53fa5377b3ab8bd9b601 (diff) | |
| download | smarty-61db287b8fd58b2f0a714f1007bd71059b9e52a9.tar.gz smarty-61db287b8fd58b2f0a714f1007bd71059b9e52a9.tar.bz2 smarty-61db287b8fd58b2f0a714f1007bd71059b9e52a9.zip | |
Scottchiefbaker/master (#1019)
* Add a PSR-4 loading script to allow Smarty to be used without Composer
authored-by: Scott Baker <scott@perturb.org>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/getting-started.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/getting-started.md b/docs/getting-started.md index 5b49fffd..3628fd20 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -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 |
