Using config files
| From: | Reynier Pérez Mira | Date: | Thu, 10 Mar 2005 04:57:42 +0000 |
| Subject: | Using config files | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12311@lists.php.net to get a copy of this message | ||
Well comunity:
I need to use a config files, but I have some questions about it. For example
1. I can substitute .css file by a config file?
2. When I create a conf file with wich extension I will save?
3. How I know to wich section belongs de [var]?
Look a example I found in Smarty Manual:
pageTitle = "Main Page"
bodyBgColor = #000000
tableBgColor = #FFFFFF
[Customer]
pageTitle = "Customer Infor"
[Login]
pageTitle = "Login Page"
focus = "username"
# hidden section
[.Database]
host = myhost.com
db = database
user = username
pass = userpass
In this case use [Customer] && [Login] && [.Database]
How I know wich I can use depending the page I stay.
The other problem is that I tried to use the $smarty.now function and the page return me an error.
How can I use predefined functions come from Smarty?
Regards
Reynier Pérez Mira
---------------------------------