helios-ag / FMBbCodeBundle

:capital_abcd: BBCode bundle for Symfony projects
Other
57 stars 35 forks source link

class 'FM\BbCodeBundle\Decoda\Decoda' does not have a method '_loadFile' #4

Closed Ser5 closed 12 years ago

Ser5 commented 12 years ago

Hi! Recently I upgraded Symfony2 to version 2.0.9 and Doctrine2 to version 2.2.0 - and started receiving errors:

An exception has been thrown during the rendering of a template ("Passed array does not specify an existing method (class 'FM\BbCodeBundle\Decoda\Decoda' does not have a method '_loadFile')") in Ser5FooBundle:Div:list.html.twig at line 16.

I tried to change this line spl_autoload_register(array($this, '_loadFile')); to spl_autoload_register(array($this, 'loadFile')); and everything went fine.

BTW, thanks for a nice bundle =)

helios-ag commented 12 years ago

This issue was fixed by @slider patch. Thank you for participating.