Changeset 8372
- Timestamp:
- 04/09/08 15:32:39 (1 year ago)
- Files:
-
- branches/1.1/lib/helper/PartialHelper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/helper/PartialHelper.php
r8343 r8372 187 187 * 188 188 * @param string slot name 189 * @param string The slot content 189 190 * 190 191 * @see end_slot 191 192 */ 192 function slot($name )193 function slot($name, $value = null) 193 194 { 194 195 $context = sfContext::getInstance(); … … 201 202 } 202 203 204 if (sfConfig::get('sf_logging_enabled')) 205 { 206 $context->getEventDispatcher()->notify(new sfEvent(null, 'application.log', array(sprintf('Set slot "%s"', $name)))); 207 } 208 209 if (!is_null($value)) 210 { 211 $response->setSlot($name, $value); 212 213 return; 214 } 215 203 216 $slot_names[] = $name; 204 217 205 218 $response->setSlot($name, ''); 206 219 sfConfig::set('symfony.view.slot_names', $slot_names); 207 208 if (sfConfig::get('sf_logging_enabled'))209 {210 $context->getEventDispatcher()->notify(new sfEvent(null, 'application.log', array(sprintf('Set slot "%s"', $name))));211 }212 220 213 221 ob_start();

