Skip to content

Commit

Permalink
Update example docs to point at libs/
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed May 15, 2024
1 parent d0270fb commit 2042979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $smarty = new Smarty();
// or ...

// Instantiated directly
require("/path/to/smarty/src/Smarty.class.php");
require("/path/to/smarty/libs/Smarty.class.php");
use Smarty\Smarty;
$smarty = new Smarty();
```
Expand Down
4 changes: 2 additions & 2 deletions libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
// backwards compatible with previous versions of Smarty. //
// //
// Example: //
// require_once("/path/to/smarty/src/Smarty.class.php"); //
// require_once("/path/to/smarty/libs/Smarty.class.php"); //
// //
// $smarty = new Smarty\Smarty; //
// $smarty->testInstall(); //
/////////////////////////////////////////////////////////////////////

define('__SMARTY_DIR', __DIR__ . '/');
define('__SMARTY_DIR', __DIR__ . '/../src/');

// Global function declarations
require_once(__SMARTY_DIR . "/functions.php");
Expand Down

0 comments on commit 2042979

Please sign in to comment.