> What's the easiest way to determine if a method is being called
> directly
> from a client (web browser) or embedded as a sub component as part of
> another call?
My solution has been to not do that.
I have some top-level controller functions, which are only ever called
by URLs, and some components, which are only ever called as {ewc}s.
I've thought about separating them into separate controllers entirely,
but haven't done so because, for now at least, it's clear which is
which.
All top-level controller functions return {result}, even if they don't
have to, so that I can look at a glance and see which one is, and all
components take entire objects (like a comment or post record) instead
of their IDs. It's kept it straight for me so far.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" 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/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---