I have been able to achieve some of what I would like to do by modifying the action helper in the boot strap (index.php)
PHP Code:
$view = new Zend_View();
$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setView($view)
->setViewSuffix('phtml')
->setNeverController(true)
->setScriptAction('main')
->setNoRender(true);
My indexController now looks like this
PHP Code:
class IndexController extends Zend_Controller_Action
{
public function indexAction()
{
$this->view->title = "Welcome";
$this->view->content = "Hello, World!";
$this->render('main');
}
public function redirectAction(){
$this->_redirect('/');
}
}
So I am rendering main.phtml. I would like to not to have to call $this->render('main'), but when I try to set setNoRender(false) for some reason it tries to render index.phtml even though I set setScriptName('main'). Any suggestions?