Development

Changeset 4214

You must first sign up to be able to contribute.

Changeset 4214

Show
Ignore:
Timestamp:
06/13/07 16:37:10 (6 years ago)
Author:
mahono
Message:

added support to get current area/child names during rendering

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSimplePageControllerPlugin/lib/sfSimplePageArea.php

    r4074 r4214  
    114114    } 
    115115 
     116    sfConfig::set('sf_simplepage_current_area', $this->areaName); 
     117 
    116118    $output = ''; 
    117119 
    118120    foreach ($this->contents as $label => $part) 
    119121    { 
     122      sfConfig::set('sf_simplepage_current_child', $label); 
     123 
    120124      switch ($part['type']) { 
    121125      case self::ACTION: 
     
    133137    } 
    134138 
     139    sfConfig::set('sf_simplepage_current_area', false); 
     140    sfConfig::set('sf_simplepage_current_child', false); 
     141 
    135142    return $output; 
    136143  }