Since php started to support oop it has moved more and more features in that
direction.
This is good for me because I love oop. Then came _autoload() and I was
rejoiced only to find that this (no fun)ction can't be used to it's fullest
potential in oop unless I have all the files in the same dir
Hehe ok..
First problem was that eval() was giving error because there was
double-quotes in the template.
Second problem an attempt to fix problem 1 by wrapping the template in a
heredoc syntax.
Problem 1 I solved as described with add/strip-slashes().
Out of curiosity I will test your sug
Sorry for not including a a code example of the template.
..
{$content}
This template I read into a variable using file_get_contents() so I
don't think escaping php will work but I will have to test this.
Your suggestion for the heredoc problem is simple, yet I didn't think of
it :D
3 matches
Mail list logo