/**
  * sfSmartyView::renderFile()
  * this method is unsed instead of sfPHPView::renderFile()
  *
  * @param mixed $file
  * @return
  * @access protected
  **/
 protected function renderFile($file)
 {
     if ($this->getExtension() == '.php' && $this->getAttribute('sf_type') != 'layout') {
         return parent::renderFile($file);
     }
     if (sfConfig::get('sf_logging_enabled')) {
         $this->dispatcher->notify(new sfEvent($this, 'application.log', array('{sfSmartyView} renderFile ' . $file)));
     }
     return $this->getEngine()->renderFile($this, $file);
 }
 protected function renderFile($_sfFile)
 {
     $info = pathinfo($_sfFile);
     $base = "{$info['dirname']}/{$info['filename']}";
     $filename = $base . ucfirst(strtolower(sfJpMobile::getCarrierName())) . '.' . $info['extension'];
     if (!is_readable($filename)) {
         $filename = "{$base}Mobile.{$info['extension']}";
         if (!sfJpMobile::isMobile() || !is_readable($filename)) {
             $filename = $_sfFile;
         }
     }
     return parent::renderFile($filename);
 }
 /**
  * Rendering file
  * 
  * @param   string  $file   Template filename
  * @return  void
  */
 protected function renderFile($file)
 {
     if (!$this->isHaml) {
         return parent::renderFile($file);
     }
     if (sfConfig::get('sf_logging_enabled', false)) {
         $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Render "%s"', $file))));
     }
     $this->loadCoreAndStandardHelpers();
     $this->parser->setFile($file);
     $this->parser->append($this->attributeHolder->toArray());
     return $this->parser->render();
 }