public static function getMethod()
{
return self::getParam('_method', self::getInstance()->getMethod());
}
/** * Prepare request for processing */ public function __construct() { // rewrite REST with "_method" param // this is workaround $this->method = strtoupper(Request::getParam('_method', Request::getMethod())); // get all params $query = Request::getQuery(); if (is_array($query) && !empty($query)) { unset($query['_method']); $this->params = $query; } $this->data = Request::getParams(); }