diff --git a/docs/getting-started.md b/docs/getting-started.md index b9a6c4cfc..3628fd203 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -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(); ``` diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index aa5ecf201..c5d9caa16 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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");