我有一個控制器,數字,並且控制器內的我的功能之一是插件和用於小部件然後幾個公共的功能,如亮點。添加段或子功能/類笨
查看被設置爲數字/部件/ highlights.php
我想有鏈接顯示爲domain.com/digital/widget/highlights以及麪包屑(autocrumb)
public function widget()
{
$header["pageTitle"] = "TV Listing Widgets and Snippets";
$this->load->helper('breadcrumb');
$this->load->view('templates/header.php', $header);
$this->load->view('digital/widget');
$this->load->view('templates/modal.php');
$this->load->view('templates/footer.php');
}
public function highlights()
{
$header["pageTitle"] = "TV Highlights Widget";
$this->load->helper('breadcrumb');
$this->load->view('templates/header.php', $header);
$this->load->view('digital/widgets/highlights');
$this->load->view('templates/modal.php');
$this->load->view('templates/footer.php');
}
是否可以創建子類或函數或類似的東西?