I'm having some difficulty with quite a simple blog that I set up using version 1.3 of FuelPHP - more of a lack of knowledge than anything else that I would be grateful if someone could help a newbie out with.
I've created the blog elements using Oil, which has been really useful, but when I output the full text of the blog on a view blog page - it shows all the HTML and PHP code that I entered into the database, it doesn't interpret the <br /> and <p> tags for instance.
One of the security features is that by default ALL data send to a view is encoded, to make sure any injected HTML is rendered harmless. This off course is not so pleasant if that is your intention.
You can pass variables to a view object without encoding using the set_safe() method of the View object.
I've been looking at this ever since your kind response, and I think I've tried every possible way of trying to get the set_safe() method in.... but I'm a little stuck. All I can do is make this tell me I'm calling an undefined function!
Would you be able to suggest please how I can place this code in? I'd be very grateful as I'm quite confused on this but would like to learn and use FuelPHP more now I'm beginning to understand it.