我正在尝试获取我的菜单模块的模块类后缀。这就是我试图实现的方法: echo $module->$params->get('class_sfx');但是没有结果。有人知道怎么做吗?另外,当我
Print_r($module->参数);结果是
{"menutype":"test","startLevel":"1","endLevel":"0","showAllChildren":"0","tag_id":"","class_sfx":"cc_page_main_body_bottom_menu_item_panel_menu_container_first","window_open":"","layout":"_:center-top","moduleclass_sfx":"cc_page_main_body_bottom_menu_item_panel_website","cache":"1","cache_time":"900","cachemode":"itemid"} 发布于 2012-06-08 16:54:45
我认为你的回声中有太多的$。它应该是$module-> params ->get('class_sfx');注意参数的$ in形式。
在模块本身内,通常可以使用$params->get('class_sfx')获取该模块的参数,而不使用$module片段。
https://stackoverflow.com/questions/10945636
复制相似问题