Update example docs to point at libs/

This commit is contained in:
Scott Baker
2024-05-15 08:11:50 -07:00
parent d0270fb8ea
commit 2042979701
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ $smarty = new Smarty();
// or ... // or ...
// Instantiated directly // Instantiated directly
require("/path/to/smarty/src/Smarty.class.php"); require("/path/to/smarty/libs/Smarty.class.php");
use Smarty\Smarty; use Smarty\Smarty;
$smarty = new Smarty(); $smarty = new Smarty();
``` ```

View File

@@ -7,13 +7,13 @@
// backwards compatible with previous versions of Smarty. // // backwards compatible with previous versions of Smarty. //
// // // //
// Example: // // Example: //
// require_once("/path/to/smarty/src/Smarty.class.php"); // // require_once("/path/to/smarty/libs/Smarty.class.php"); //
// // // //
// $smarty = new Smarty\Smarty; // // $smarty = new Smarty\Smarty; //
// $smarty->testInstall(); // // $smarty->testInstall(); //
///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
define('__SMARTY_DIR', __DIR__ . '/'); define('__SMARTY_DIR', __DIR__ . '/../src/');
// Global function declarations // Global function declarations
require_once(__SMARTY_DIR . "/functions.php"); require_once(__SMARTY_DIR . "/functions.php");