Smarty Variable Step by Step Tutorial - Part 4: We can store variables at configuration file. For this job, we must create a folder named configs within root application (example, www/test/smarty). So, we have www/test/smarty/configs.
Create a configuration file with conf extension, such as "setting.conf". Enter following sample code:
Next, build template by create a file named "test.tpl" within template. Enter following code
Create a file named "test.php" enter following code:
0 comments:
Post a Comment