Fork me on GitHub

Smarty Plugin testing????  Bottom

  • Hey all so I have been messing around with JS and the PN system and for the life of me it seems that PN does some crazy stuff and makes things not work the way they should in both IE and Mozilla. I was pointed to this article How do I include a j…t file in my module by jediping, now I took this example and executed on it yet to my dissapointment no dice the JS doen't even run in either browser anymore. I then start the process of debugging and try different things, and decided that if I do a print/die statement inside the Smarty function this should give me something in return ( jediping tested this theory for me and it work ) I get nothing in return, so with that said how can one trace the plugin fuction to find a root error as I am now lost as to why the function is not working this article has the code in it if you would like to review JavaScript, Post…, and IE...HELP....


    Thanks all
    -SUNADMN
  • I think if you don't get any dying of your plugin, then it's because it isn't being called. Which means that you need to debug the plugin. Don't forget to change plugin names to have your module name. Like this:

    from : function smarty_function_projectadditionalheaders

    to: function smarty_function_pnChangeadditionalheaders

This list is based on users active over the last 60 minutes.