示例#1
0
 /**
  * Load a view from the current theme with the given data
  * 
  * @param string $file
  * @param array $data
  * 
  * @todo deprecate this function -John 
  * @todo render views with the theme engine instead
  * @note this based off of the core handler function of the same name
  */
 public static function getView($data = null, $file = null)
 {
     $filename = VIEWROOT . $file;
     return Erdiko::getTemplate($filename, $data);
 }