i'm makeing my 1st app whith Zend and i have got a problem.
zftutorial.dev\application\controllers\IndexController.php
<?php
class IndexController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$this->view->title = "My Albums";
}
}
zftutorial.dev/application/views/scripts/index/index.phtml
<?php echo $this->render('header.phtml'); ?>
<h1><?php echo $this->escape($this->title); ?></h1>
<?php echo $this->render('footer.phtml'); ?>
zf-tutorial/application/views/scripts/header.phtml
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title><?php echo $this->escape($this->title); ?></title>
</head>
<body>
<div id="content">
zf-tutorial/application/views/scripts/footer.phtml
</div>
</body>
</html>
but when i go to address
i get in my browser this info:
An error occurred
Application error
Offcourse i set up vhosts files and when i using
zftutorial.dev/application/views/scripts/index/index.phtml
<h1><?php echo $this->escape($this->title); ?></h1>
then everything is ok. Problem is whith this <?php echo $this->render('header.phtml'); ?> and this <?php echo $this->render('footer.phtml'); ?> line but i don't know what is wrong.