[Templating] added a __isset() method to the Engine
This commit is contained in:
parent
d14daf9275
commit
04a0032293
@ -152,6 +152,18 @@ class Engine
|
||||
return $this->$name = $this->get($name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the helper if defined.
|
||||
*
|
||||
* @param string $name The helper name
|
||||
*
|
||||
* @return Boolean true if the helper is defined, false otherwise
|
||||
*/
|
||||
public function __isset($name)
|
||||
{
|
||||
return isset($this->helpers[$name]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Helper[] $helpers An array of helper
|
||||
*/
|
||||
|
Reference in New Issue
Block a user