Example #1
0
 /**
  * Executes the action file inside a clean scope and returns defined variables
  *
  * @see Atomik::_execute()
  * @param string $actionFilename
  * @param array $vars              Variables that will be available in the scope
  * @param string $className        If a class name is specified, it will try to execute its execute() static method
  * @return array
  */
 public static function executeFile($actionFilename, $vars = array(), $className = null)
 {
     self::fireEvent('Atomik::Executefile', array(&$actionFilename, &$vars));
     
     $atomik = new self();
     $vars = $atomik->_execute($actionFilename, $vars, $className);
     $atomik = null;
     
     return $vars;
 }