Thank you Daniel! That was it. Now I remember reading that in the
Docs. I ended up doing this:
all:
.navigation:
tabs:
main:
- { slug: monitoring, link: Monitoring }
- { slug: customers, link: Customers }
customers:
- { slug: lookup, link: Customer Lookup }
- { slug: communities, link: Communities }
monitoring:
- { slug: report, link: Current Report }
Livesaver!
On Jan 4, 10:40 pm, Daniel Lohse <[email protected]> wrote:
> As I'm currently in public transportation, I cannot give you a
> specific doc page but I know this is in 1.2 book.
>
> What you need to do is the following:
>
>
>
> > all:
> .navigation:
> > tabs_main:
> > monitoring: Monitoring
> > customers: Customers
>
> Sorry if the indentation is not accurate in this email, I think you
> know how to handle this. The important part is this: the additional
> group label with the dot at the beginning is not part of the access
> key! So after this you can access the array like so: sfConfig::get
> ('app_tabs_main').
>
> Cheers, Daniel
>
> Sent from my iPhone
>
> On Jan 5, 2010, at 2:43 AM, SB <[email protected]> wrote:
>
> > 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
> > athttp://groups.google.com/group/symfony-users?hl=en
> > .
--
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.