Controller Commands
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
Examples:
* Redirect the user to another page
<?php
// the user will be redirected to www.google.com
$location = 'www.google.com';
$controllerCommand = new miControllerCommand(miControllerCommand::CONTROLLER_COMMAND_REDIRECT, $location);
$dataManager->addControllerCommand($controllerCommand);
?>
* Display HTML or text
<?php
$text = 'Hello <strong>world</strong>!';
$controllerCommand = new miControllerCommand(miControllerCommand::CONTROLLER_COMMAND_HTML, $text);
$dataManager->addControllerCommand($controllerCommand);
?>