I'm playing around with CodeIgniter, hoping to convert some of my old, ugly PHP into a more maintainable framework. However, I've come across a rather frustrating roadblock - I can't seem to define functions in my views. Any time I try I get a completely blank page back, and when I look in the debug log the processing seemed to stop after the view was loaded.
Can I define functions within views? If not, why not, and what workarounds would you suggest? (the function has to do with formatting output strings)