Hallo,
i am on the implementation of my own routing classes, where i want to
fetch some objects (i don't use an ORM) in actions.

Now i have a problem, which Fabien has already solved here:
http://www.symfony-project.org/plugins/api/1.0/profile.xml

The API fetches some data, dependant on the authenticated user. I do not
know, if the according objects are fetched directly in the action or if
the routing returns those values. I want to use the latter case, but i am
a little bit lost there.

I assume this route:

/api/:version/profile.:sf_format

But when you want to retrieve an object from this route it will break,
because the route looks for an id (or whatever) which is not passed as
normal request parameter to this parameters array.

The user id is passed in the  "$_SERVER['PHP_AUTH_USER']" variable i
think, because HTTP Auth is used there.

Routing stuff is done before the security filter, so i really do not know
the best way to solve this problem.

Any ideas?

I would be very interested in an tutorial which explains how this API was
implemented!

Cheers,
Frank

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