diff --git a/NEWS b/NEWS index a170af3f..d08fd2d7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - fixed errors with example setup docs (Monte, Matthew + Hagerty) - added textformat block function (Monte) Version 2.3.0 diff --git a/docs/getting-started.sgml b/docs/getting-started.sgml index e90fe8fd..a4e2517b 100644 --- a/docs/getting-started.sgml +++ b/docs/getting-started.sgml @@ -150,7 +150,7 @@ $smarty = new Smarty; Create Smarty instance from SMARTY_DIR -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; @@ -298,7 +298,7 @@ Hello, {$name}! Editing /web/www.mydomain.com/docs/guestbook/index.php -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'); // 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/';