Closed sanmai closed 7 years ago
Consider the following class definition.
class Example { private $name = null; public function name() { return $this->name; } }
If you happen to include an instance of this class in a template, then try to access the name like so:
{{ example.name }}
You will get a fatal error:
PHP Fatal error: Uncaught Error: Cannot access private property Example::$name
Closed in #41
Consider the following class definition.
If you happen to include an instance of this class in a template, then try to access the name like so:
You will get a fatal error: