Le 12/05/2011 23:45, scott a écrit :
Is there any documentation or information on extending existing
bundles? I have installed the easy-extend bundle as part of the media
bundle installation but I am not sure I really understand how this
works and how to override existing controllers, entities and views?

Thanks in advance for any help.
Entities are not extendable due to the way Doctrine works.

For views, it is described here: http://symfony.com/doc/2.0/book/templating.html#overriding-bundle-templates

Overwriting controllers is done by creating a bundle as child of the one you want to overwrite (which also works for templates by the way):

class AcmeFrameworkBundle extends Bundle
{
    public function getParent()
    {
        return 'FrameworkBundle';
    }
}/
/

--
Christophe | Stof

--
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 users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to