|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
i-litovan Smarty Rookie
Joined: 03 Aug 2013 Posts: 13
|
Posted: Sat Sep 21, 2013 12:10 pm Post subject: {config_load} - multilene varible in file.conf |
|
|
Hi
How can I declare miltiline varible in the configuration file?
Example:
{config_load file=file.conf}
file.conf
Code: |
#---------------------------------------------------------------
# Global Varible
#---------------------------------------------------------------
pageTitle = "Main Menu"
bodyBgColor = #000000
miltiLineVarible = (
line - 1
line - 2
line - 3
....
)
|
Thenks... |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
Back to top |
|
i-litovan Smarty Rookie
Joined: 03 Aug 2013 Posts: 13
|
Posted: Sun Sep 22, 2013 1:04 pm Post subject: |
|
|
Thanks...
but there was still a question
What is:
Code: |
# hidden section
[.Database]
host=my.example.com
db=ADDRESSBOOK
user=php-user
pass=foobar
|
what does it do? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Sep 22, 2013 3:27 pm Post subject: |
|
|
Config files can have named sections.
Code: |
[section1]
...
[section2]
...
[.hidden]
....
|
at $smarty->configLoad(...) oder {config_load...} you can specifiy a section which shall be loaded. If don't specify a section at load config all sections except hidden sections (name starting with '.') will be loaded.
So hidden sections can only be loaded by specifying it's name at load cnfig.[/code] |
|
Back to top |
|
i-litovan Smarty Rookie
Joined: 03 Aug 2013 Posts: 13
|
Posted: Wed Sep 25, 2013 8:06 pm Post subject: |
|
|
U.Tews wrote: | Config files can have named sections.
Code: |
[section1]
...
[section2]
...
[.hidden]
....
|
at $smarty->configLoad(...) oder {config_load...} you can specifiy a section which shall be loaded. If don't specify a section at load config all sections except hidden sections (name starting with '.') will be loaded.
So hidden sections can only be loaded by specifying it's name at load cnfig.[/code] |
Thanks... |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|