public function get_widget() { $widget_id = $this->param('id', NULL, TRUE); $widget = Dashboard::get_widget($widget_id); if ($widget === NULL) { $this->response(FALSE); } $this->response((string) View::factory('dashboard/widget_settings', array('widget' => $widget))); }