Announcement

Collapse
No announcement yet.

How run several IMPORT application in ONCE

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Okey I did modifications but before to run the blank application I'm wondering if sintax is good,

    When you call a function from a method you have to add () after the name ? i.e. import_categories() ,
    On my array I don't use any () . Is it correct ??

    $imports = array( 'import_categories',
    'import_customer',
    'import_orders',
    'import_order_details',
    'import_price_list',
    'import_price_list_std',
    'import_products',
    'import_salesmen',
    'import_suppliers'
    ); //again list all your import function names here but start with one and get it working

    foreach($imports as $import)
    {
    $this->$import();
    }

    Comment


    • #17
      OK tested without () . It works like charm !!! Many thanks
      Now I have to insert it within CRON as "run_import.php". Correct ?

      Comment

      Working...
      X