Helpers are available only your controllers and your views. Helpers are not
available in your model components unless you use ColdSpring to pass in the
specific helper you need as a dependancy.
DW


On Thu, Oct 23, 2008 at 2:36 PM, garence
<[EMAIL PROTECTED]>wrote:

>
> I'm attempting to make use of a few udfs I placed in the helpers
> directory (CSVtoArray.cfm, EightIt.cfm, and QuerySim.cfm).
>
> The function below resides in a component located in the model
> directory ... Am I using the correct syntax below for calling these
> helpers?
>
> Much thanks.
>
> Gary
>
>
>        <cffunction name="qryLog" access="public" returntype="query"
> output="false">
>                <cfset var q = "" />
>                <cffile action="read" file="w:\cflogs\theplaza.log"
> variable="filecontent" />
>                <cfscript>
>                        arrayed = helpers.CSVtoArray(filecontent);
>                        ArrayDeleteAt(arrayed,1);
>                        ArrayDeleteAt(arrayed,1);
>                </cfscript>
>                <cfprocessingdirective suppresswhitespace="yes">
>                        <cfoutput>
>                        <cfsavecontent variable="values">
>                            <cfloop from="1" to="#arrayLen(arrayed)#"
> index="i">
>                                #arrayed[i][3]#|#arrayed[i][4]#|
> #helpers.EightIt(arrayed[i][6])##Chr(13)##Chr(10)#
>                            </cfloop>
>                        </cfsavecontent>
>                    </cfoutput>
>                </cfprocessingdirective>
>                <cfscript>
>                helpers.QuerySim('
>                        q
>                        dated,timed,techID
>                        #values#
>                ');
>                </cfscript>
>                <cfreturn q />
>        </cffunction>
>
>
> >
>


-- 
"Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew."

Guillaume Apollinaire quotes

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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to