Don't like ads? PRO users don't see any ads ;-)

Collabim MVC

By: vchrm on May 9th, 2012  |  syntax: PHP  |  size: 0.62 KB  |  hits: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. protected function dispatchYellow()
  2. {
  3.         $actionName = $this->getActionName();
  4.         $request = $this->getRequest();
  5.         $controller = $this->createController('Yellow');
  6.        
  7.         if ($actionName === 'blue')
  8.         {
  9.                 $viewVariables = $this->createViewVariables();
  10.                 $someGetIntegerParameter = $this->parsers->integer->parse($request->getQuery('p'));
  11.  
  12.                 $controller->blueAction(
  13.                         $viewVariables,
  14.                         $someGetIntegerParameter
  15.                 );
  16.  
  17.                 $layoutFiller = $this->createViewFiller('GreenLayout');
  18.  
  19.                 $layoutFiller->fillVariables(
  20.                         $viewVariables,
  21.                         $someGetIntegerParameter
  22.                 );
  23.  
  24.                 $this->setView('yellow/blue', $viewVariables);
  25.         }
  26. }