Hi,

Configuration files use an arborescent model,

Say you have a app.yml like this
all:
   sf_doctrineguard_plugin:
        form:    sfGuardFormSigninByEmail

You should be able to retrieve the value using
$class = sfConfig::get('app_sf_doctrineguard_plugin_form');

All you have to do is replacing subsequent levels with underscores in the
key name of config value

In your case, it returns 'sfGuardFormSignin' because you passed it to
sfConfig::get as default value (second parameter), and your config is not
existing

Benoit


2010/3/30 Javier Garcia <tirengar...@gmail.com>

> Hi,
>
> this is my frontend/config/app.yml
>
> all:
>
>  sf_doctrineguard_plugin:
>    app_sf_guard_plugin_signin_form:    sfGuardFormSigninByEmail
>
>
> and i have this code in
> plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php
>
>
>
> class BasesfGuardAuthActions extends sfActions
> {
> function executeSignin($request)
>  {
>   //...
>
>    $class = sfConfig::get('app_sf_guard_plugin_signin_form',
> 'sfGuardFormSignin');
>
>    echo $class;
>  }
> }
>
>
> When i execute the signin action, it always shows 'sfGuardFormSignin'
> instead of 'sfGuardFormSigninByEmail'.
>
> Why?
>
> Javi
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
> To unsubscribe from this group, send email to symfony-users+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to