Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 499

Notice: Undefined offset: 8192 in /home/miphpf/domains/ on line 506
Controller Commands | MIPHPF - Your Open Source RAD PHP Framework
Skip navigation.

Controller Commands

: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/miphpf/domains/ on line 291.

Controller commands are objects of type miControllerCommand which represent instructions to the page object. Controller commands are processed after action processing has finished. There are two types of instructions:
* redirect to a location
* display HTML or text


* Redirect the user to another page

//  the user will be redirected to
$location = '';
$controllerCommand = new miControllerCommand(miControllerCommand::CONTROLLER_COMMAND_REDIRECT, $location);

* Display HTML or text
= 'Hello <strong>world</strong>!';
$controllerCommand = new miControllerCommand(miControllerCommand::CONTROLLER_COMMAND_HTML, $text);