We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26016
    • 561 Posts
    Hi!
    I have no trouble using snippets, and in most cases feed them parameters in the snippet call.

    I’d also like to be able to feed a snippet a big whole array (as opposed to individual parameters sent in array fashion, if that makes any sense). It seems to me that a direct runSnippet call is the way to do this(?), so that’s what I’m doing.

    I’m having some trouble getting it to work. Probably just PHP newbie-ness. I’m trying to use stuff from POSTS or GETS and somewhere along the line the array of stuff isn’t making it over there.

    Any good examples of code where someone sends an array to a Snippet (that isn’t just the usual parameters)? It works best if I see an example, though I can understand theory explanations in small bites. grin

    Thanks!!!!!
      MODx and Wordpress development
      Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
      • 18397
      • 3,250 Posts
      Take a look at how Reflect runs Ditto.
        • 26016
        • 561 Posts
        Quote from: Mark at May 07, 2007, 08:51 PM

        Take a look at how Reflect runs Ditto.
        Mark,
        Thanks again! Between that and getting a little better versed in associative arrays, I’m up and running! Seems like there’s nothing this system can’t do with a little work. grin
          MODx and Wordpress development
          Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4