Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
- move pages to root
authored
Jan 29, 2015
by
Daniel Sum
Show whitespace changes
Inline
Side-by-side
Arx-BaseController.md
0 → 100644
View page @
7a28ee01
Arx\BaseController
===============
Class BaseController
Better BaseController inspired by CodeIgniter Data flow (merge data value)
*
Class name: BaseController
*
Namespace: Arx
*
Parent class: Controller
Properties
----------
### $data
```
public mixed $data = array()
```
*
Visibility:
**public**
Methods
-------
### \Arx\BaseController::setupLayout()
```
void Arx\BaseController::\Arx\BaseController::setupLayout()()
```
Setup the layout used by the controller.
*
Visibility:
**protected**
### \Arx\BaseController::assign()
```
mixed Arx\BaseController::\Arx\BaseController::assign()($key, $value)
```
Assign data to template and controller
*
Visibility:
**public**
#### Arguments
*
$key
**mixed**
*
$value
**mixed**
### \Arx\BaseController::getCommonVars()
```
mixed Arx\BaseController::\Arx\BaseController::getCommonVars()(array $otherDataToMerge, boolean $addToCommon)
```
*
Visibility:
**public**
#### Arguments
*
$otherDataToMerge
**array**
*
$addToCommon
**boolean**
### \Arx\BaseController::viewMake()
```
\Illuminate\View\View Arx\BaseController::\Arx\BaseController::viewMake()($layout, array $data)
```
Same than View make but injects common vars
*
Visibility:
**public**
#### Arguments
*
$layout
**mixed**
*
$data
**array**
### \Arx\BaseController::viewContent()
```
mixed Arx\BaseController::\Arx\BaseController::viewContent()($layout, $data)
```
*
Visibility:
**public**
#### Arguments
*
$layout
**mixed**
*
$data
**mixed**