fixed errors with example setup docs

This commit is contained in:
mohrt
2002-09-20 21:19:32 +00:00
parent 849e32e6fd
commit d09cfaaf1b
2 changed files with 7 additions and 3 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fixed errors with example setup docs (Monte, Matthew
Hagerty)
- added textformat block function (Monte)
Version 2.3.0

View File

@@ -150,7 +150,7 @@ $smarty = new Smarty;</screen>
<example>
<title>Create Smarty instance from SMARTY_DIR</title>
<screen>
define(SMARTY_DIR,'/usr/local/lib/php/Smarty/');
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;</screen>
</example>
@@ -298,7 +298,7 @@ Hello, {$name}!</screen>
<title>Editing /web/www.mydomain.com/docs/guestbook/index.php</title>
<screen>
define(SMARTY_DIR,'/usr/local/lib/php/Smarty/');
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;
@@ -354,7 +354,7 @@ $smarty->display('index.tpl');</screen>
<screen>
// load Smarty library files
define(SMARTY_DIR,'/usr/local/lib/php/Smarty/');
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
require(SMARTY_DIR.'Smarty.class.php');
// a good place to load application library files, example:
@@ -366,6 +366,8 @@ class Smarty_GuestBook extends Smarty {
// Class Constructor. These automatically get set with each new instance.
$this->Smarty();
$this->template_dir = '/web/www.mydomain.com/smarty/guestbook/templates/';
$this->compile_dir = '/web/www.mydomain.com/smarty/guestbook/templates_c/';
$this->config_dir = '/web/www.mydomain.com/smarty/guestbook/configs/';