function BaseWidget($id, $options = array())
 {
     $this->id = $id;
     $this->widget_path = ROOT_PATH . '/external/widgets/' . $this->_name;
     $this->widget_root = SITE_URL . '/external/widgets/' . $this->_name;
     /* 初始化视图配置 */
     $this->_view =& _widget_view();
     $this->set_options($options);
     $this->assign('widget_root', $this->widget_root);
     $this->assign('id', $this->id);
     $this->assign('name', $this->_name);
 }
Example #2
0
 function BaseWidget($id, $options = array())
 {
     $this->id = $id;
     $this->widget_path = ROOT_PATH . '/external/widgets/' . $this->_name;
     $this->widget_root = SITE_URL . '/external/widgets/' . $this->_name;
     /* 初始化视图配置 */
     $this->_view =& _widget_view();
     $this->_view->lib_base = dirname(site_url()) . '/includes/libraries/javascript';
     $this->set_options($options);
     $this->assign('widget_root', $this->widget_root);
     $this->assign('id', $this->id);
     $this->assign('name', $this->_name);
 }