Extended SetupThis is a continuation of the basic installation, please read that first! A slightly more flexible way to setup Smarty is to extend the class and initialize your Smarty environment. So instead of repeatedlysetting directory paths, assigning the same vars, etc., we CAN Do That in One Place. Lets Create A New Directory "/ PHP / INCLUDES / GUESTBOOK /" AND Make A New File Called "Setup.php". IN OUR EXAMPLE Environment, "/ PHP / INCLUDES" IS IN OUR INCLUDE_PATH. BE Sure you set this up too, or useful file paths.example 2.10. editing / php/includes/guestbook/setup.php smarty (); $ this-> template_dir = '/web/www.mydomain .com / smarty / guestbook / templates / '; $ this-> compile_dir =' /web/www.mydomain.com/smarty/guestbook/templates_c/'; $ $ $ >>fig_dir = '/Web/www.mydomain.com / smarty / guestbook / configs / '; $ this-> cache_dir =' /web/www.mydomain.com/smarty/guestbook/cache/'. $ this->caching = true; $ this-> assign ('app_name " , 'Guest book');}}?>