$url_param) { $child['url'] = str_replace('{{' . $i . '}}', $this->Hash->extract($data, $url_param)[0], $child['url']); } } echo sprintf( '
%s%s
', sprintf( '
%s
', $randomId, sprintf( '', $randomId, h($child['title']) ) ), sprintf( '
', !empty($child['collapsed']) ? 'show' : 'collapsed', $randomId, $randomId, $randomId, h($child['url']), empty($child['loadOn']) ? 'ready' : h($child['loadOn']) ) ); ?>