I have pushed a proof of concept of theming support in PHP:
https://github.com/vicb/symfony/tree/form%2Fphp-theme

The code in this branch support theming:
* The helper use an array of resources (= themes),
* you can apply a theme to a view by calling $view['form']-
>setTheme($view, 'Bundle:Controller'),
* the table theme has been added and is unit tested.

Theme inheritance is supported by passing an array of themes
array(Parent, Children) to either the constructor or the setTheme()
method.

It is based on this PR:
https://github.com/symfony/symfony/pull/1369

What is missing:
* A configuration layer (to configure the resources in the same way as
the FormHelper),
* A cache layer to speedup lookupTemplate().

I am really looking for feedback on anything: theme name format,
configuration, ... so do not hesitate.

Cheers,
Victor

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to