Smarty Variable: Variable at Configuration FileTag: smarty, template, variable, config Category: PHP Classespost: 03 May 2008 read: 242 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:
|
| | Give Your Opinion | Recommend |
|

