On Fri, Nov 21, 2008 at 8:59 PM, Gavin Baumanis wrote:

> For an example of something that I don't get is;
>
> In the tBlog application there is the following code at the beginning
> of a lot of the templates (I.e listPost, listUser etc)
> transfer = application.transferFactory.getTransfer();
>
> Is this necessary?
> Could I not just do this?
>
> application.transfer = application.transferFactory.getTransfer();
> and store it once in the application scope?
>


Gavin,

All that is happening here is that the "page" is grabbing a _reference_ to
Transfer from the application scope and placing it into the variables
scope.  This code does *not* create a new Transfer factory.  It simply makes
a shorter variable for typing out should the page be using it often.

So, when you see:

transfer = application.transferFactory.getTransfer();

... all it is doing is keeping you from having to type
application.transferFactory.getTransfer() every time you need to use it on
the page.

HTH

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to