We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11975
    • 2,542 Posts
    My english certainly sucks grin

    So my apologises for switching to french:

    David,

    j’ai déplacé cette portion du code en début du fichier.
    Sinon j’avais une erreur d’appel de la fonction si je la laissais a sa place originelle en fin de fichier.

    :-)
      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
      • 6726
      • 7,075 Posts
      Thanks for clarifying smiley

      Didn’t see that you had moved the code up to avoid a php error (translating for those interrested).

      Anyway : great improvement. Don’t forget to post this in the repository as an improvement of the 1.2.1.
      This opens many possibilities smiley
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 36541
        • 222 Posts
        Quote from: PaulGregory at Oct 20, 2006, 08:09 AM

        Although arguably mis-titled, http://wiki.modxcms.com/index.php/Creating_Snippets is a great guide to some PHP best practice, and my first suspicion is that GetField has broken one of the guidelines.

        I must have missed a moment a wiki for MODx emerged. I’ll certainly take a look at it as I *am not* a professional PHP coder smiley

        Edit: This issue has been solved and changes have been made to GetField code. Please, download new version from the repository.
          This is the web: the only thing you know about who will come is that you don't know who will come.