Hi Rob,

 

This nicely follows on from Twitter yesterday. Why not use custom tags
instead of helpers here? Then you can just pass in the event structure or
individual pieces of data into the custom tag within the relevant views.

 

Although, equally can't you just pass in data to the helper method or the
event structure itself? I haven't used helpers myself but they are just
UDF's accessed via the event scope right?

 

James.

 

---

James  Allen

E: [email protected]

Blog: http://jamesallen.name

Twitter: @CFJamesAllen (Coldfusion / Web development)

Twitter: @jamesallenuk (General)

Twitter: @JamesAllenVoice (Voiceover)

 

Tune in to the best in community radio - Codebass Radio:
http://codebassradio.net

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Rawlins
Sent: 26 October 2011 12:08
To: [email protected]
Subject: [Model-Glue] Accessing the event context within a helper

 

Hello Guys,

 

I'm putting together some helpers which will be generating HTML markup for
me. Part of this markup will be creating links. (event.linkTo)

 

I need access to the current event context from within the helper for doing
this. Is this possible at all?

 

If not, what's the best way to achieve it?

 

Thanks.

 

Robert

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

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

Reply via email to