# Render

{% hint style="danger" %}
**Please note:** This page is under construction and has not been finished yet.
{% endhint %}

## Introduction

Use the following to retrieve the render class object.&#x20;

```php
$ns = e107::getRender();
```

## Render methods

### tablerender()

Send HTML to the browser for output.&#x20;

```php
$ns->tablerender($caption, $text, $mode, $return);
```

| Parameter   | Type    | Description                                                                                                                    | Mandatory |
| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ | --------- |
| **caption** | string  | Text for header/caption                                                                                                        | **Yes**   |
| **text**    | string  | Actual text/content                                                                                                            | **Yes**   |
| mode        | string  | <p>Unique name for what is being rendered. eg contact-menu<br>Used in themes and plugins. </p><p><em>Default:</em> default</p> | No        |
| return      | boolean | <p>When set to true the content is returned instead of being echoed</p><p><em>Default: false</em></p>                          | No        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devguide.e107.org/classes-and-methods/render.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
