$mbView
$mbView : \MocaBonita\view\MbView
Stores the current MbView of the action
Main class of the MocaBonita Controller
$mbView : \MocaBonita\view\MbView
Stores the current MbView of the action
$mbRequest : \MocaBonita\tools\MbRequest
Stores the current MbRequest of the request
$mbResponse : \MocaBonita\tools\MbResponse
Stores the current MbResponse of the response
indexAction(\MocaBonita\tools\MbRequest $mbRequest, \MocaBonita\tools\MbResponse $mbResponse) : null|string|\MocaBonita\view\MbView|mixed
Example of index action
If the return is null, then it will call MbView from this controller and then render it (Common request) If the return is null, then it will print a message saying "No valid content has been submitted!" (Ajax Request)
If the return is string, then it will print the string (Common request) If the return is string, then it will add the string in the key "content" on the data (Ajax Request)
If the return is MbView, then it will render it (Common request) If the return is MbView, then it will print a message saying "No valid content has been submitted!" (Ajax Request)
If the return is mixed, then it will call a var_dump of the returned value (Common request) If the return is mixed, then it will print a message saying "No valid content has been submitted!" (Ajax Request)
\MocaBonita\tools\MbRequest | $mbRequest | |
\MocaBonita\tools\MbResponse | $mbResponse |
getMbRequest() : \MocaBonita\tools\MbRequest
Get MbRequest
setMbRequest(\MocaBonita\tools\MbRequest $mbRequest) : \MocaBonita\controller\MbController
Set MbRequest to Controller
\MocaBonita\tools\MbRequest | $mbRequest |
getMbResponse() : \MocaBonita\tools\MbResponse
Get MbResponse
setMbResponse(\MocaBonita\tools\MbResponse $mbResponse) : \MocaBonita\controller\MbController
Set MbResponse to Controller
\MocaBonita\tools\MbResponse | $mbResponse |
getMbView() : \MocaBonita\view\MbView
Get MbView
setMbView(\MocaBonita\view\MbView $mbView) : \MocaBonita\controller\MbController
Set MbView to Controller
\MocaBonita\view\MbView | $mbView |
viewResolver(\MocaBonita\view\MbView $mbView) : \MocaBonita\view\MbView
resolver view of controller
\MocaBonita\view\MbView | $mbView |
create(string $className) : \MocaBonita\controller\MbController
Controller Factory
string | $className |
When the controller is not an instance of MbController
actionResolver(\MocaBonita\tools\MbAction $mbAction) : void
resolver action of controller
\MocaBonita\tools\MbAction | $mbAction |