Robert Castley pisze:
Try setting:
$this->_helper->viewRenderer->setNoRender();
------------------------------------------------------------------------
*From:* Jason DeBord [mailto:[email protected]]
*Sent:* 11 February 2009 15:03
*To:* [email protected]
*Subject:* [fw-general] index.phtml absolutely necessary?
The code below does not work:
1: Should it?
2: Must you always have a corresponding index.phtml when you have an
indexAction() method?
For some reason I don't want to use index.phtml for any view besides
IndexController. Easier to see what is going on without a bunch of
index.phtml files.
What do you suggest?
<?php
class DirectionsController extends Zend_Controller_Action {
public function init() {
$this->view->doctype('XHTML1_TRANSITIONAL');
}
public function indexAction() {
// directions.phtml exists in the views/scripts/directions
directory
// index.phtml does not
$this->view->render('directions');
}
}
Jason DEBORD
Limoges, France
http://www.jasondebord.net/
________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs
Email Security Service and the Macro 4 plc internal virus protection
system.
________________________________________________________________________
________________________________________________________________________
This email has been scanned for all known viruses by the MessageLabs
Email Security Service and the Macro 4 plc internal virus protection
system.
________________________________________________________________________
use only
$this->render('directions');
no $this->view->render I think
this disable rendering
$this->_helper->viewRenderer->setNoRender();