星期五, 3月 18, 2011

Zend View Render

View Render
$view = new Zend_View();
$view->setScriptPath(dirname(__FILE__) . “/templates”); //template的位置
$view->name = $name; //參數
$view->email = $email;
$view->render(‘form.phtml’); //render


template(login.phtml)
<html>
<body>
Login e-mail:email; ?>
Login password:password; ?>
</body>
</html>

沒有留言: