Changeset 9313 for branches/1.1/lib
- Timestamp:
- 05/27/08 12:50:00 (5 years ago)
- Files:
-
- branches/1.1/lib/view/sfPHPView.class.php (modified) (3 diffs)
- branches/1.1/lib/view/sfPartialView.class.php (modified) (1 diff)
- branches/1.1/lib/view/sfViewParameterHolder.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/view/sfPHPView.class.php
r9151 r9313 70 70 71 71 // EXTR_REFS can't be used (see #3595 and #3151) 72 extract($this-> attributeHolder->toArray());72 extract($this->dispatcher->filter(new sfEvent($this, 'template.filter_parameters'), $this->attributeHolder->toArray())->getReturnValue()); 73 73 74 74 // render … … 130 130 131 131 $this->attributeHolder = $this->initializeAttributeHolder(array('sf_content' => new sfOutputEscaperSafe($content))); 132 $this->attributeHolder->set('sf_type', 'layout'); 132 133 133 134 // render the decorator template and return the result … … 165 166 $this->preRenderCheck(); 166 167 168 $this->attributeHolder->set('sf_type', 'action'); 169 167 170 // render template file 168 171 $content = $this->renderFile($this->getDirectory().'/'.$this->getTemplate()); branches/1.1/lib/view/sfPartialView.class.php
r9047 r9313 89 89 $this->preRenderCheck(); 90 90 91 $this->getAttributeHolder()->set('sf_type', 'partial'); 92 91 93 // render template 92 94 $retval = $this->renderFile($this->getDirectory().'/'.$this->getTemplate()); branches/1.1/lib/view/sfViewParameterHolder.class.php
r9047 r9313 54 54 $this->dispatcher = $dispatcher; 55 55 56 $event = $dispatcher->filter(new sfEvent($this, 'template.filter_parameters'), $parameters);57 $parameters = $event->getReturnValue();58 59 56 $this->add($parameters); 60 57