Save In the templates directory. 5. Create a new file template configuration file: config.php
and save it in the home directory in test. 6. Create a new file test.php in test
7: Testing test.php in the browser displays: This is the content Congratulations, the configuration is successful. Otherwise, it fails, check again to see if it is as I said. Tips1: In order to use Smarty technology globally on the website, we can modify the ; Windows: "path1;path2" include_path = ".;c:phpincludes" Change to: ------------------> ; Windows: "path1;path2" include_path = ".;c:phpincludes;d:webwebphplibs" When using templates, use them in the same way as before, do not include "../libs/Smarty.class.php"; It can be used directly. |