It may feel like controller logic, but it isn't an interface to your
program, so it doesn't belong in controller code.

But it doesn't necessarily belong in model code either.   My practice
for stuff like this is to put the external access code into an easily
mockable library and put it in /lib or even into a plugin.

cheers,
Bryan


On Tue, Sep 18, 2012 at 4:40 PM, brettnem <[email protected]> wrote:
> Hello All,
>
> I have a working lifecycle, but the logic for it is getting quite
> complicated. Part of the lifecycle requires accessing other system's APIs
> and has browser redirects in them. This logic feels like controller logic.
> Am I doing something wrong? Is it possible to call controller methods from a
> lifecycle?
>
> Thanks,
> Brett
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/9DZac9RPNxgJ.
> 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/hobousers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
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/hobousers?hl=en.

Reply via email to