Changeset 2117

Show
Ignore:
Timestamp:
10/08/07 16:08:42 (15 months ago)
Author:
david
Message:

Fixed global request data being accessible in View::initialize() (and in the constructor), closes #544 (best we can do with our current architecture)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/src/filter/AgaviExecutionFilter.class.php

    r2081 r2117  
    303303      $container->setViewName($actionCache['view_name']); 
    304304 
     305      $key = $request->toggleLock(); 
    305306      // get the view instance 
    306307      $viewInstance = $controller->createViewInstance($actionCache['view_module'], $actionCache['view_name']); 
     308      // initialize the view 
     309      $viewInstance->initialize($container); 
     310      $request->toggleLock($key); 
     311 
    307312      // Set the View Instance in the container 
    308313      $container->setViewInstance($viewInstance); 
    309  
    310       // initialize the view 
    311       $viewInstance->initialize($container); 
    312  
     314       
    313315      $outputType = $container->getOutputType()->getName(); 
    314316