0
我正在學習一個zend framework.i使用tinymce編輯器來顯示網站上的動態內容。現在我想顯示頁眉和頁腳來自佈局和佈局內容來自數據庫命名cms..my整個頁面的內容表存儲在database..header和頁腳頁面包括我在layout.phtml.i不知道如何顯示與佈局我的佈局頁面如下:如何使用數據庫中的tinymce顯示頁面
<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo CSS_PATH.'/jquery.jqplot.min.css';?>" />
<script src="<?php echo CSS_JS.'/jquery.ui.widget.mn.min.js';?>" type="text/javascript"></script>
<script src="<?php echo CSS_JS.'/jquery.effects.corin.js';?>" type="text/javascript"></script>
<script src="<?php echo CSS_JS.'/jquery.ui.accordioe.min.js';?>" type="text/javascript"></script>
<script src="<?php echo CSS_JS.'/jquery.effects.slide.min.js';?>" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/jquery.jqplot.min.js';?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/plugins/jqplot.barRenderer.min.js';?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/plugins/jqplot.pieRenderer.min.js';?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/plugins/jqplot.categoryAxisRenderer.min.js';?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/plugins/jqplot.highlighter.min.js';?>"></script>
<script language="javascript" type="text/javascript" src="<?php echo CSS_JS.'/jqPlot/plugins/jqplot.pointLabels.min.js';?>"></script>
<script src="<?php echo CSS_JS.'/setup.js';?>" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
setupDashboardChart('chart1');
setupLeftMenu();
setSidebarHeight();
});
</script>
</head>
<body>
</div>
<?php echo $this->render('header.phtml') ?>
<?php echo $this->layout()->content ?>
<?php echo $this->render('footer.phtml') ?>
</body>
</html>
和當我從數據庫回顯內容它顯示php代碼,因爲它...請幫助