Version 0.9.5 beta - added $_FILES to the controller in order to have this super global accessible.
This commit is contained in:
@@ -187,4 +187,21 @@ class Controller extends View
|
||||
return $_SERVER;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $param
|
||||
* @param bool $params
|
||||
* @return string|array
|
||||
*/
|
||||
public function getFiles( string $param, bool $params = false )
|
||||
{
|
||||
if($param!="")
|
||||
{
|
||||
return $_FILES[$param];
|
||||
}
|
||||
elseif($params)
|
||||
{
|
||||
return $_FILES;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user