SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to grab an array from another template with cfparam

    I can't seem to get the cfparam to grab the array from another template. How exactly do i do this? Something like "<cfparam name="CMdata" default="0">" doesn't seem to work...

    edit: <cfparam name="CMdata" type="array" default="#ArrayNew(1)#"> doesn't seem to work either...

    edit edit: I lied...i think it is passing it but something is wrong with the array. I used cfdump to output the array, and it has a crap load of "[undefined array element]" which confuses me. I have to look further into it...
    Last edited by Wej; Oct 2, 2008 at 14:41.

  2. #2
    SitePoint Member
    Join Date
    Sep 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Found the problem. My stupid mistake. I put the variable that counts through the array in a loop that was inside the loop so it counted 27 then put the number in the array, so that made CMdata[1] not exist...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •