1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

phalcon リクエスト 覚書

1
Last updated at Posted at 2018-09-09

頭のぶぶん

<?php
	use Phalcon\Mvc\Controller;
	use Phalcon\Mvc\Model\Criteria;
	use Phalcon\Http\Response;
	use Phalcon\Http\Request;
	class HogeController extends \Phalcon\Mvc\Controller
	{
  • getリクエスト

public function getAction()
{
	$req=$this->request->get();
}
  • postリクエスト
public function postAction()
{
  	$req=$this->request->getPost();
}
  • putリクエスト
public function putAction()
{
	$req=$this->request->getPut();
}

deleteリクエストだけコントローラ側で受け取る関数が見当たらない(*deleteリクエストか否かの判別 $this->request->isDelete();はある)のだけども...
$this->request->getRawBody();で生のリクエスト文から扱いたい値をsubstr();とかで抽出するしかないのかしら?
それってとてもメンドクサイマン
脳みそ貧弱なオジサンにわかるように教えてくさい

例によって例の如く,この記事で何かしらの問題が発生しても当局は一切関与しない。
なおこのメッセージは5秒前に消滅する

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?