Obsolete:Migrating your code to the 2.0 rendering API
From MoodleDocs
Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.
This page explains how to update your code to take advantage of the new navigation/block/themes/rendering APIs in Moodle 2.0. These changes are explained on Development:Navigation 2.0, Development:Navigation_2.0_implementation_plan and linked pages. You should read that background to understand the changes. This page just explains how you should update your code, not why.
$PAGE
...