class hotkeywidget extends widget {
public function render($data) {
$node=m('hotkey');//这里是数据库表的实例化
$data=$node->limit('0,10')->select();
$data['list']=$data;
$content = $this->renderfile ( addon_path . '/widgets/hotkey.html', $data);
return $content;
}
}
我在hotket.html中应该怎么调用hotkeywidget 类中读取出来的数据? 如果应用到模版上面应该怎么调用?
------解决方案--------------------
会用thinkphp的,难道就不会用自定义的?
