Example Analysis of integrating smarty in CI Framework
This article mainly introduces the CI framework integration of smarty example analysis, the article introduces in great detail, has a certain reference value, interested friends must read!
Configuration steps of Ci combined with smarty:
1. The first step is to configure ci and download the template for smarty (Smarty-3.1.8).
two。 The second part unzips the downloaded smarty version, renames the libs file to smarty, and copies the file to the ci\ application\ libraries directory.
3. Create a file under the ci\ application\ libraries directory. The file name can be customized, for example, see a tp.php document.
4. Open tp.php with the compiler and write the following code: