Example #1
0
 /**
  * executes & returns or displays the template results
  * This is extended by wifidog to make sure that the variables influenced by state (such as the current node) are as up to date as humanly possible.
  * @param string $resource_name
  * @param string $cache_id
  * @param string $compile_id
  * @param boolean $display
  */
 public function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)
 {
     /* Other useful variables */
     Network::assignSmartyValues($this);
     Node::assignSmartyValues($this);
     User::assignSmartyValues($this);
     return parent::fetch($resource_name, $cache_id, $compile_id, $display);
 }