I want to write my cuctom widgets, and I see the doc:
http://codex.wordpress.org/Function_Reference/wp_register_sidebar_widget
http://codex.wordpress.org/Widgets_API
But I don't know what is the difference between this two ways?
the wp_register_sidebar_widget is only simply insert the HTML or php code into the sidebar?