求助php[widgets开发]
本人php初学者,现在在做ecmall二次开发,这在开发一个挂件,现在我做了一个hello_widgets的挂件,并建立了相应的四个文件,(config.html,main.widget.php,widget.html,widget.info.php)就是当进入后台模版编辑点击编辑时进入首页,头部是关键列表,为什么我点击自己建的挂件名称却没有出现自己的挂件,一直在加载中。。
请问还需要修改什么文件吗?挂件到底怎么实现的,仍在研究中。
而且在index.html中已经添加了
<!--添加九城特区方块-->
<div class="" area="helloWidgets" widget_type="area">
<!--{widgets page=index area=helloWidgets}-->
</div>
在default_index.config.php中添加了
'_widget_1000'=>
array(
'name' => 'hello_widgetsN',
'options'=>
array(
'ad_image_url'=> 'data/files/mall/template/20110603-2.jpg',
'ad_link_url' => '',
),
),
'helloWidgets'=>
array(
0 => '_widget_1000',
),
可就是没有成功,请高手赐教!谢谢!
请问还需要修改什么文件吗?挂件到底怎么实现的,仍在研究中。
而且在index.html中已经添加了
<!--添加九城特区方块-->
<div class="" area="helloWidgets" widget_type="area">
<!--{widgets page=index area=helloWidgets}-->
</div>
在default_index.config.php中添加了
'_widget_1000'=>
array(
'name' => 'hello_widgetsN',
'options'=>
array(
'ad_image_url'=> 'data/files/mall/template/20110603-2.jpg',
'ad_link_url' => '',
),
),
'helloWidgets'=>
array(
0 => '_widget_1000',
),
可就是没有成功,请高手赐教!谢谢!
作者: gj462375513 发布时间: 2011-06-13
帮你顶顶把~
作者: Iamduoluo 发布时间: 2011-06-13