|
|||
|
Hi again,
in my IndexController.php Code:
class IndexController extends Zend_Controller_Action {
public function init(){
$this->view->actionTemplate = $this->getViewScript();
}
public function indexAction(){
$this->view->title = 'Index, Index';
$this->render('site',null,true);
}
public function loginAction(){
$this->view->title = 'Index, Login';
$this->render('site',null,true);
}
public function logoutAction(){
$this->view->title = 'Index, Logout';
$this->render('site',null,true);
}
public function searchAction(){
$this->view->title = 'Index, Search';
$this->render('site',null,true);
}
}
Code:
<?php echo $this->render($this->actionTemplate); ?> Code:
$this->render('site',null,true);
My question, how can I make some kind of Auto-Renderer? So I dont have to type $this->render('site',null,true); again and again. Thx a lot. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|