I'm looking for a right way to create global variables in Magento that I can use it on every view page. I have some solution in mind but I don't if it's good enough.
Create a module which provides a global configuration - I don't prefer this much since I rather work with php array rather than xml, just my stupid taste.
Override the base block to have one more utility function
It's just my thought, any other suggestions are welcome :)