mirror of
https://github.com/smarty-php/smarty.git
synced 2025-09-25 20:00:54 +02:00
Update example docs to point at libs/
This commit is contained in:
@@ -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();
|
||||||
```
|
```
|
||||||
|
@@ -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");
|
||||||
|
Reference in New Issue
Block a user