Development

Changeset 8083

You must first sign up to be able to contribute.

Changeset 8083

Show
Ignore:
Timestamp:
03/25/08 18:49:13 (1 year ago)
Author:
dwhittle
Message:

1.1: tweaked template handling (to use configuartion->getTemplatePath / getDecoratorDir)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/view/sfPartialView.class.php

    r7727 r8083  
    44 * This file is part of the symfony package. 
    55 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com> 
    6  *  
     6 * 
    77 * For the full copyright and license information, please view the LICENSE 
    88 * file that was distributed with this source code. 
     
    4040  { 
    4141    $this->setDecorator(false); 
    42  
    4342    $this->setTemplate($this->actionName.$this->getExtension()); 
    4443    if ('global' == $this->moduleName) 
    4544    { 
    46       $this->setDirectory(sfConfig::get('sf_app_template_dir')); 
     45      $this->setDirectory($this->context->getConfiguration()->getDecoratorDir($this->getTemplate())); 
    4746    } 
    4847    else 
  • branches/1.1/lib/view/sfView.class.php

    r7959 r8083  
    460460    else 
    461461    { 
     462      $this->directory = $this->context->getConfiguration()->getTemplateDir($this->moduleName, $template); 
    462463      $this->template = $template; 
    463464    } 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.