Thanks Ian,

The only way I've managed to do it:

$sf_data ['sf_request'] -> getParameter ('email');

but im sure that i'm missing the point since that's an unscaped
version.....

I did that to:

$sf_data ['sf_request'] -> get ('email');


[sfException]
Call to undefined method sfRequest::get
stack trace
at ()
in SF_SYMFONY_LIB_DIR\request\sfRequest.class.php line 435 ...

  {
    if (!$callable = sfMixer::getCallable('sfRequest:'.$method))
    {
      throw new sfException(sprintf('Call to undefined method
sfRequest::%s', $method));
    }

    array_unshift($arguments, $this);at sfRequest->__call('get',
array('user_name'))in n/a line n/a ...at sfWebRequest-
>get('user_name')in SF_SYMFONY_LIB_DIR\view\escaper
\sfOutputEscaperObjectDecorator.class.php line 88 ...      throw new
sfException('Object does not have a callable get() method.');
    }

    return $this->value->get($key);
  }

  /**at sfOutputEscaperObjectDecorator->getRaw('user_name')in
SF_SYMFONY_LIB_DIR\view\escaper
\sfOutputEscaperGetterDecorator.class.php line 52 ...
$escapingMethod = $this->escapingMethod;
    }

    return sfOutputEscaper::escape($escapingMethod, $this-
>getRaw($key));
  }
}
at sfOutputEscaperGetterDecorator->get('user_name')
in SF_ROOT_DIR\apps\frontend\modules\public_user\templates
\registerSuccess.php line 18 ...

<td><?php echo label_for('user_name', __('Rider ID')) ?></td>
<td>
<?php echo form_error('user_name') ?>
<?php echo input_tag('user_name', $sf_data ['sf_request'] -> get
('user_name')) ?>
</td>
</tr>
<tr>
at require('E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\modules\public_user
\templates\registerSuccess.php')
in SF_SYMFONY_LIB_DIR\view\sfPHPView.class.php line 114 ...

    // render
    ob_start();
    ob_implicit_flush(0);
    require($_sfFile);

    return ob_get_clean();
  }at sfPHPView->renderFile('E:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\sharetheride\apps\frontend\modules/
public_user/templates/registerSuccess.php')in SF_SYMFONY_LIB_DIR\view
\sfPHPView.class.php line 251 ...
      // render template file
      $template = $this->getDirectory().'/'.$this->getTemplate();
      $retval = $this->renderFile($template);

      if (sfConfig::get('sf_cache') && $key !== null)
      {at sfPHPView->render()in SF_SYMFONY_LIB_DIR\filter
\sfExecutionFilter.class.php line 182 ...
      // render the view and if data is returned, stick it in the
      // action entry which was retrieved from the execution chain
      $viewData = $viewInstance->render();

      if (sfConfig::get('sf_debug') &&
sfConfig::get('sf_logging_enabled'))
      {at sfExecutionFilter->execute(object('sfFilterChain'))in
SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...      }

      // execute the next filter
      $this->chain[$this->index]->execute($this);
    }
  }
at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\filter
\sfFlashFilter.class.php line 50 ...    }

    // execute next filter
    $filterChain->execute();

    // remove flash that are tagged to be removed
    $names = $userAttributeHolder->getNames('symfony/flash/remove');at
sfFlashFilter->execute(object('sfFilterChain'))in SF_SYMFONY_LIB_DIR
\filter\sfFilterChain.class.php line 43 ...      }

      // execute the next filter
      $this->chain[$this->index]->execute($this);
    }
  }
at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\filter
\sfCommonFilter.class.php line 29 ...  public function
execute($filterChain)
  {
    // execute next filter
    $filterChain->execute();

    // execute this filter only once
    $response = $this->getContext()->getResponse();at sfCommonFilter-
>execute(object('sfFilterChain'))in SF_SYMFONY_LIB_DIR\filter
\sfFilterChain.class.php line 43 ...      }

      // execute the next filter
      $this->chain[$this->index]->execute($this);
    }
  }
at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\filter
\sfWebDebugFilter.class.php line 35 ...    }

    // execute next filter
    $filterChain->execute();

    $context    = $this->getContext();
    $response   = $context->getResponse();at sfWebDebugFilter-
>execute(object('sfFilterChain'))in SF_SYMFONY_LIB_DIR\filter
\sfFilterChain.class.php line 43 ...      }

      // execute the next filter
      $this->chain[$this->index]->execute($this);
    }
  }
at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\filter
\sfRenderingFilter.class.php line 33 ...  public function
execute($filterChain)
  {
    // execute next filter
    $filterChain->execute();

    if (sfConfig::get('sf_logging_enabled'))
    {at sfRenderingFilter->execute(object('sfFilterChain'))in
SF_SYMFONY_LIB_DIR\filter\sfFilterChain.class.php line 43 ...      }

      // execute the next filter
      $this->chain[$this->index]->execute($this);
    }
  }
at sfFilterChain->execute()in SF_SYMFONY_LIB_DIR\controller
\sfController.class.php line 276 ...        }

        // process the filter chain
        $filterChain->execute();
      }
      else
      {at sfController->forward('public_user', 'register')in
SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php line
48 ...      $actionName = $request->getParameter('action');

      // make the first request
      $this->forward($moduleName, $actionName);
    }
    catch (sfException $e)
    {at sfFrontWebController->dispatch()in SF_ROOT_DIR\web
\frontend_dev.php line 10 ...
require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');

sfContext::getInstance()->getController()->dispatch();
symfony settings ...
---
app_recaptcha_privatekey: 6LfmVQIAAAAAAJAIvQBF-ucJd2D-QJ180eTKAowz
app_recaptcha_publickey: 6LfmVQIAAAAAAL-4C9MSTpU8M59c9v_bWJKL8Ek0
app_sfContactForm_contact_action: contact
app_sfContactForm_contact_module: content
app_sfContactForm_mail_html_footer: Kind regards, your favorite
website.
app_sfContactForm_mail_html_header: Dear webmaster, there is a new
contact message from your website.Here is the content:
app_sfContactForm_mail_recipient: [EMAIL PROTECTED]
app_sfContactForm_mail_sent_msg: Thank you for contacting us!
app_sfContactForm_mail_subject: New contact message
app_sfContactForm_mail_txt_footer: Kind regards, your favorite
website.
app_sfContactForm_mail_txt_header: |
  Dear webmaster, there is a new contact message from your website.
  Here is the content:
app_sfContactForm_use_cryptographp:
app_sf_guard_plugin_algorithm_callable:
  - GPassword
  - plain
mod_public_user_enabled: 1
mod_public_user_is_internal:
mod_public_user_view_class: sfPHP
sf_admin_web_dir: /sf/sf_admin
sf_app: frontend
sf_app_config_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\config
sf_app_config_dir_name: config
sf_app_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend
sf_app_i18n_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\i18n
sf_app_i18n_dir_name: i18n
sf_app_lib_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\lib
sf_app_lib_dir_name: lib
sf_app_module_action_dir_name: actions
sf_app_module_config_dir_name: config
sf_app_module_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\modules
sf_app_module_dir_name: modules
sf_app_module_i18n_dir_name: i18n
sf_app_module_lib_dir_name: lib
sf_app_module_template_dir_name: templates
sf_app_module_validate_dir_name: validate
sf_app_module_view_dir_name: views
sf_app_template_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\apps\frontend\templates
sf_app_template_dir_name: templates
sf_apps_dir_name: apps
sf_autoloading_functions:
sf_available: 1
sf_base_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend
sf_bin_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\batch
sf_bin_dir_name: batch
sf_cache:
sf_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev
sf_cache_dir_name: cache
sf_calendar_web_dir: /sf/calendar
sf_charset: utf-8
sf_check_lock:
sf_check_symfony_version:
sf_compressed:
sf_config_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev\config
sf_config_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\config
sf_config_dir_name: config
sf_data_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\data
sf_data_dir_name: data
sf_debug: 1
sf_default_action: index
sf_default_module: content
sf_doc_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\data\doc
sf_doc_dir_name: doc
sf_enabled_modules:
  - default
  - sfGuardAuth
  - recaptcha
  - sfPagerNavigation
  - sfContactForm
  - sfInstantCMS
sf_environment: dev
sf_error_404_action: error404
sf_error_404_module: default
sf_error_reporting: 8191
sf_escaping_method: ESC_ENTITIES
sf_escaping_strategy: 1
sf_etag:
sf_i18n:
sf_i18n_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev\i18n
sf_lib_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\lib
sf_lib_dir_name: lib
sf_log_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\log
sf_log_dir_name: log
sf_logging_enabled: 1
sf_logging_history: 10
sf_logging_level: debug
sf_logging_period: 7
sf_logging_purge: 1
sf_logging_rotate:
sf_login_action: signin
sf_login_module: sfGuardAuth
sf_max_forwards: 5
sf_model_dir_name: model
sf_model_lib_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\lib\model
sf_module_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev\modules
sf_module_disabled_action: disabled
sf_module_disabled_module: default
sf_no_script_name:
sf_orm: propel
sf_path_info_array: SERVER
sf_path_info_key: PATH_INFO
sf_plugins_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\plugins
sf_plugins_dir_name: plugins
sf_prototype_web_dir: /sf/prototype
sf_rich_text_js_dir: js/tiny_mce
sf_root_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache
sf_root_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride
sf_routing_defaults:
  sf_culture: en
sf_secure_action: secure
sf_secure_module: sfGuardAuth
sf_standard_helpers:
  - Partial
  - Cache
  - Form
sf_strip_comments: 1
sf_suffix: .
sf_symfony_data_dir: E:\php\includes\symfony\data
sf_symfony_lib_dir: E:\php\includes\symfony\lib
sf_template_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev\template
sf_test:
sf_test_cache_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\cache\frontend\dev\test
sf_test_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\test
sf_test_dir_name: test
sf_timeout: 1800
sf_timer_start: 1216037172.2669
sf_unavailable_action: unavailable
sf_unavailable_module: default
sf_upload_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\web\uploads
sf_upload_dir_name: uploads
sf_url_format: PATH
sf_use_database: 1
sf_use_flash: 1
sf_use_process_cache: 1
sf_use_security: 1
sf_validation_error_class: form_error
sf_validation_error_id_prefix: error_for_
sf_validation_error_prefix:  ↓
sf_validation_error_suffix:   ↓
sf_web_debug: 1
sf_web_debug_web_dir: /sf/sf_web_debug
sf_web_dir: E:\Program Files\Apache Software Foundation
\Apache2.2\htdocs\sharetheride\web
sf_web_dir_name: web
request ...
---
parameterHolder:
  symfony/default:
    action: register
    module: public_user
attributeHolder:
  symfony/default:
  symfony/filter:
    fillin:
response ...
---
cookies:
httpHeaders:
  Content-Type: text/html; charset=utf-8
parameterHolder:
  helper/asset/auto/httpmeta:
    Content-Type: text/html; charset=utf-8
  helper/asset/auto/javascript:
    /sf/sf_web_debug/js/main: /sf/sf_web_debug/js/main
  helper/asset/auto/meta:
    robots: index, follow
  helper/asset/auto/stylesheet:
    /sf/sf_web_debug/css/main:
    main:
  symfony/response/http/headers:
    Content-Type: text/html; charset=utf-8
global vars ...


On Jul 14, 4:21 am, "Ian P. Christian" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I put this in my settings.yml
>
> >      escaping_strategy:      on
> >      escaping_method:        ESC_ENTITIES
>
> > But I can't access sf_request (to repopulate a form) in my
> > templates.... Did I miss something?
>
> $sf_data['sf_request'];
> try doing that
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to