咨詢個問題,使用的是幫助文檔里的那個 火車頭發(fā)布插件,用不帶public的程序使用是可以的, 我換了帶public 程序 按照之前的設置,提示獲取不到欄目列表,是需要在哪里設置下嗎,有無大佬知曉啊、
news和chanpin都獲取不到
$this->_module_init('news'); // news 是模塊目錄
if ($_GET['action'] == 'category')
{
// 顯示欄目
if (!$this->module['category'])
echo '[1]顯示欄目' . $this->module['category'] ;
{
echo '模塊【' . $this->module['dirname'] . '】沒有創(chuàng)建欄目';
echo '[2]顯示' . $this->module['dirname'] ;
}
foreach ($this->module['category'] as $t)
echo '[3]顯示' . $this->module['category'] ;
{
if ($t['child'] == 0 && $t['tid'] == 1)
echo '[4]顯示' . $this->module['category'] ;
echo '[5]顯示' . $t['child'];
{
echo '<h1>' . $t['name'] . '<=>' . $t['id'] . '</h1>' . PHP_EOL;
echo '[6]顯示<h1>' . $t['name'] ;
}
}
}
else



參考文檔:《火車頭內容采集范例》
(!$this->module['category'])這種寫法適用于免費版的建站插件,高級版的建站插件用這個就沒有數(shù)據(jù),高級版需要用最新文檔的格式來寫。
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!