Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpHZ0cACgkQadOAzz84lo96/QCghT7Wke2jfkWddip4w+m3fx61
eCoAn3bUtZBMLWCanCOyLu/w91YxzQ4x
=JMdG
-----END PGP SIGNATURE-----
Hello
This is my index controller :
<?php
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->getResponse()->setHttpResponseCode(404);
}
}
But the request returns HTTP 200 response. How can I force it to return
404 ?
I have configured layout, and ViewRenderer automatically, and I use
ZendFramework 1.8.2.
Greetings
ß
Rafał (ert16) Trójniak
m@il : ert256@gmail.com
Jid : ert256@gmail.com
GPG key-ID : 3F38968F
4711 E3BC B674 C841 BED8
0F8F 69D3 80CF 3F38 968F
没有评论:
发表评论