Hello everyone. Here's my question for today. I'm building (for fun) a simple templating engine. The basic idea is that I have a tag like this {blog:content} and I break it in a method and a action. The problem is when I want to call a static variable dynamically, I get the following error .
Parse error: parse error, expecting `','' or `';''
And the code:
$class = 'Blog';
$action = 'content';
echo $class::$template[$action];
$template is a public static variable(array) inside my class, and is the one I want to retreive.