diff --git a/docs/en/getting-started.xml b/docs/en/getting-started.xml index e8ab6864..e4d12520 100644 --- a/docs/en/getting-started.xml +++ b/docs/en/getting-started.xml @@ -39,7 +39,7 @@ content down to text and variables only. - One of the unique aspects about Smarty is the template compling. This means + One of the unique aspects about Smarty is the template compiling. This means Smarty reads the template files and creates PHP scripts from them. Once they are created, they are executed from then on. Therefore there is no costly template file parsing for each request, and each template can take @@ -170,7 +170,7 @@ debug.tpl Here is how you create an instance of Smarty in your PHP scripts: - + Create Smarty instance of Smarty @@ -202,7 +202,7 @@ $smarty = new Smarty; - Add library directory to php_include path + Add library directory to PHP include_path - + Technical Note @@ -275,7 +275,7 @@ $smarty = new Smarty; entry with a space.) - + Lets take a look at the file structure so far: @@ -445,9 +445,9 @@ require('Smarty.class.php'); class Smarty_GuestBook extends Smarty { - function Smarty_GuestBook() + function Smarty_GuestBook() { - + // Class Constructor. These automatically get set with each new instance. $this->Smarty(); @@ -455,8 +455,8 @@ class Smarty_GuestBook extends 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/'; - $this->cache_dir = '/web/www.mydomain.com/smarty/guestbook/cache/'; - + $this->cache_dir = '/web/www.mydomain.com/smarty/guestbook/cache/'; + $this->caching = true; $this->assign('app_name','Guest Book'); } @@ -470,7 +470,7 @@ class Smarty_GuestBook extends Smarty { Now lets alter the index.php file to use setup.php: - + Editing /web/www.mydomain.com/docs/guestbook/index.php @@ -493,7 +493,7 @@ $smarty->display('index.tpl'); Now you see it is quite simple to bring up an instance of Smarty, just use Smarty_GuestBook which automatically initializes everything for our application. - +