
Collabim MVC
By:
vchrm on
May 9th, 2012 | syntax:
PHP | size: 0.62 KB | hits: 26 | expires: Never
protected function dispatchYellow()
{
$actionName = $this->getActionName();
$request = $this->getRequest();
$controller = $this->createController('Yellow');
if ($actionName === 'blue')
{
$viewVariables = $this->createViewVariables();
$someGetIntegerParameter = $this->parsers->integer->parse($request->getQuery('p'));
$controller->blueAction(
$viewVariables,
$someGetIntegerParameter
);
$layoutFiller = $this->createViewFiller('GreenLayout');
$layoutFiller->fillVariables(
$viewVariables,
$someGetIntegerParameter
);
$this->setView('yellow/blue', $viewVariables);
}
}