1
我有一個關於Zend控制器的信息,我想在index.php上的div上顯示爲菜單,標題爲按鈕,內容爲內容本身。 我試圖按照幾個教程,但沒有得到任何地方。 有人可以從如何從索引調用控制器的一些燈光?連接到Zend框架控制器
<?php
class TabController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
// action body
}
public function tabcontentAction(){
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout()->disableLayout();
$arr = array(array(Title => "Women",
Content => date("H:i:s") . " Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sem ligula, luctus et a
(...)
)
);
echo json_encode($arr);
}
}
謝謝