Pasted text code
Anonymous paste - 20 November 2008 20:24:29 CET - Viewed 13 times
app.yml
all:
menu_maker_yui_mymenu1:
menu_1:
a:
label: 'my label 1'
items: [sub_menu_1, sub_menu_2]
#~ allow: [role1, role2] #permissions
sub_menu_1:
a:
label: 'my label 2'
href: 'mymodule/myaction'
#~ allow: [role1]
sub_menu_2:
a:
label: 'my label 3'
items: [sub_sub_menu_1]
#~ allow: [role1]
sub_sub_menu_1:
a:
label: 'my label 4'
href: 'mymodule/myotheraction'
#~ allow: [role1]
Cached app.yml file:
<?php
// auto-generated by sfDefineEnvironmentConfigHandler
// date: 2008/11/20 18:45:42
sfConfig::add(array(
'app_menu_maker_yui_mymenu1_menu_1' => array (
'a' =>
array (
'label' => 'my label 1',
),
'items' =>
array (
0 => 'sub_menu_1',
1 => 'sub_menu_2',
),
),
'app_menu_maker_yui_mymenu1_sub_menu_1' => array (
'a' =>
array (
'label' => 'my label 2',
'href' => 'mymodule/myaction',
),
),
'app_menu_maker_yui_mymenu1_sub_menu_2' => array (
'a' =>
array (
'label' => 'my label 3',
),
'items' =>
array (
0 => 'sub_sub_menu_1',
),
),
'app_menu_maker_yui_mymenu1_sub_sub_menu_1' => array (
'a' =>
array (
'label' => 'my label 4',
'href' => 'mymodule/myotheraction',
),
),
));
$app_config_store_array = sfConfig::get('app_' . 'menu_maker_yui_'. $menu_name);
after substitution:
$app_config_store_array = sfConfig::get('app_menu_maker_yui_mymenu1_menu_1');Paste tree
- by hal 2 months ago
- 2 months ago
Submit a correction
Hashbin is currently in BETA version, please report any bugs/design/spam/abuse/problems/etc to hartym (at) dakrazy (dot) net.
Thanks.
Thanks.