Hi all,
I'm trying to store my navigation tabs in app.yaml and retrieve an
associative array of the form:
Here's my app.yml:
all:
tabs_main:
monitoring: Monitoring
customers: Customers
What I wish I could do is sfConfig::get('app_tabs_main') which is an
array like:
array('monitoring' => 'Monitoring', 'customers' => 'Customers');
but app_tabs_main doesn't exist. I can do app_tabs_main_monitoring
and app_tabs_main_customers but that doesn't help, because the whole
idea is that I won't know which pages to ask for.
I also tried
all:
tabs_main:
- { monitoring: Monitoring }
- { customers: Customers }
but that gives:
sfConfig::get('app_tabs_main_0') = array('monitoring' => 'Monitoring')
and
sfConfig::get('app_tabs_main_1') = array('customers' => 'Customers')
which is close, but no cigar.
How have you tackled storing tabs or navigation in YAML files?
Thanks,
SB
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.