Jump to content

momanroman

New Members
  • Posts

    3
  • Joined

  • Last visited

momanroman's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, Yes there is a dev/test envirovent but that would mean cloning the whole site and database to use, something I am trying to avoid. I have tested my function already and it is rock solid, it is a fairly straight forware regex function from the post code. Its already been integrated into the module with no error, I just need to call it, job done, I beleive, we shall see.
  2. Perfect, thanks.. Same as Java script then, I thought as much. Many thanks.
  3. Apologies if this is simples. I'm adapting an ecommerce payment module, which comes as a class. I have written some extra code (as a function) to strip the numbers from a postcode & addess for card verification purposes. My issue is I cannot test this very easily live so I need to know the syntax is mostly correct. For example. (structure only, most code stripped) class payment module { var $code, $title, $description, $enabled; // class constructor function moduleconst() { // constructor code in here } // class methods function method1() { // code in here } function method2() { // code in here } } My problem is simple, how do I call function1 from within function2? Can I just call it straight ? ie: function method2() { method1(); } Iain
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.