Hello,

First, please use the _dev.php controllers to get beautifull exception stack
traces ;)
Second, clear-cache ?
Third, check you have put the MyUser.class.php in the lib/ directory of your
project.
Fourth, you can rename your userIsAuthentic() to ->isAuthentic as you're
talking to a $sf_user (instanceof MyUser) so it's a user ;)

Regards,

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Mon, Mar 14, 2011 at 2:54 PM, Cornelius Parkin <
[email protected]> wrote:

> Hi
>
> I wrote a class called MyUser which extends the sfUser class in order
> to add some functionality. I then added the following in the
> factories.yml file in order for Symfony to use MyUser instead of
> sfUser.
>
> user:
>    class: MyUser
>
> This is what I could pick up from the web. However, when I try to call
> a function which I added in the MyUser class
> [$sf_user->userIsAuthentic()] I get an error [The server returned a
> "500 Internal Server Error".]. It seems like the MyUser class is not
> picked up nor the functions defined in it.
>
> Can someone please point me in the right direction?
>
> Thanks in advance...
>
> --
> Warm Regards
>
> C.A.Parkin
>
> ~"When you innovate, you've got to be prepared for everyone telling
> you you're nuts" - Larry Ellison~
>
> --
> 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 [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
>

-- 
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 [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