On Wednesday 09 Feb 2011 22:45:20 whisher wrote:
> or
>
> $this->_helper->viewRenderer->setNoRender();
> $this->_helper->getHelper('layout')->disableLayout();
> $this->getResponse()
> ->setBody('HTTP/1.1 404 Not Found')
> ->setRawHeader('HTTP/1.1 404 Not Fo
or
$this->_helper->viewRenderer->setNoRender();
$this->_helper->getHelper('layout')->disableLayout();
$this->getResponse()
->setBody('HTTP/1.1 404 Not Found')
->setRawHeader('HTTP/1.1 404 Not Found');
--
View this message in context:
http://zend-framewo
throw new Zend_Controller_Action_Exception('Page not found', 404);
This is what I do
-Oorspronkelijk bericht-
From: Serkan Temizel
Sent: Wednesday, February 09, 2011 5:14 PM
To: zend FW - General
Subject: [fw-general] How to handle 404
Hi,
URL: domain.com/page/show/id/1
as you gues
Hi,
URL: domain.com/page/show/id/1
as you guess page controller, show action displays the page with id 1.
Everything is OK
In the controller I make a check for id
public function showAction() {
$request = $this->getRequest ();
if(!is_numeric($request->id)){
//no id no page! but what to do
Dear Zend Framework users,
In the multi-account application I am working on, a user may access its
application either by:
http://.app.domain.com///
or:
http://app.domain.com
To do so, I wrote this bootstrap method:
public function _initRoutes()
{
$front = Zend_Controller_Fr