| Fully Qualified Name: | CodeIgniter\View\View |
| Implements: | RendererInterface |
Class View
| Name | Description | Defined By |
|---|---|---|
| __construct() | Constructor | View |
| endSection() | View | |
| excerpt() | Extract first bit of a long string and add ellipsis | View |
| extend() | Specifies that the current view should extend an existing layout. | View |
| getData() | Returns the current data that will be displayed in the view. | View |
| getPerformanceData() | Returns the performance data that might have been collected during the execution. Used primarily in the Debug Toolbar. | View |
| include() | Used within layout views to include additional views. | View |
| render() | Builds the output based upon a file name and any data that has already been set. | View |
| renderSection() | Renders a section's contents. | View |
| renderString() | Builds the output based upon a string and any data that has already been set. | View |
| resetData() | Removes all of the view data from the system. | View |
| section() | Starts holds content for a section within the layout. | View |
| setData() | Sets several pieces of view data at once. | View |
| setVar() | Sets a single piece of view data. | View |
Constructor
| Parameter Name | Type | Description |
|---|---|---|
| $config | \Config\View | |
| $viewPath | string | |
| $loader | mixed | |
| $debug | bool | |
| $logger | \LoggerInterface |
Returns:
Returns:
Extract first bit of a long string and add ellipsis
| Parameter Name | Type | Description |
|---|---|---|
| $string | string | |
| $length | int |
Returns: string
Specifies that the current view should extend an existing layout.
| Parameter Name | Type | Description |
|---|---|---|
| $layout | string |
Returns: void
Returns the current data that will be displayed in the view.
Returns: array
Returns the performance data that might have been collected during the execution. Used primarily in the Debug Toolbar.
Returns: array
Used within layout views to include additional views.
| Parameter Name | Type | Description |
|---|---|---|
| $view | string | |
| $options | array|null | |
| $saveData | null |
Returns: string
Builds the output based upon a file name and any data that has already been set.
Valid $options:
| Parameter Name | Type | Description |
|---|---|---|
| $view | string | |
| $options | array | |
| $saveData | bool |
Returns: string
Renders a section's contents.
| Parameter Name | Type | Description |
|---|---|---|
| $sectionName | string |
Returns:
Builds the output based upon a string and any data that has already been set.
Cache does not apply, because there is no "key".
| Parameter Name | Type | Description |
|---|---|---|
| $view | string | The |
| $options | array | Reserved |
| $saveData | bool | If |
Returns: string
Removes all of the view data from the system.
Returns: \RendererInterface
Starts holds content for a section within the layout.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string |
Returns:
Sets several pieces of view data at once.
| Parameter Name | Type | Description |
|---|---|---|
| $data | array | |
| $context | string | The |
Returns: \RendererInterface
Sets a single piece of view data.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed | |
| $context | string | The |
Returns: \RendererInterface