I’d like to create my own helper but can’t find any help on Google for Symfony 1.4/Doctrine.
I guess it has something to do with creating a myClassHelper.class.php in lib/helpers/ or something, but I don’t know what to implement, or if specific methods have to be overridden.
Any help would be appreciated!
I don’t think that anything changed regarding the helpers in 1.4. From the documentation(although 1.2):
So you just put normal functions in a normal file (has nothing to do with classes or methods). The functions can take arbitrary parameters (you decide what they need to create the HTML) and the have to return HTML.
E.g.
MyHelper.php
and in the template: