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/