User Tools

Site Tools


urapidflow:same_profile_diff_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

urapidflow:same_profile_diff_file [2010/06/28 15:15] (current)
unirgy created
Line 1: Line 1:
 +====== How to run the same profile using different file names ======
  
 +<file php urapidflow.php>​
 +<?php
 +
 +// Load profile object by name
 +$profile = Mage::​getModel('​urapidflow/​profile'​)->​load('​Profile',​ '​title'​)->​factory();​
 +
 +// Run the profile using the first file
 +$profile->​setFilename('​file1.csv'​)->​start()->​save()->​run();​
 +
 +// Run the profile using the second file
 +$profile->​setFilename('​file2.csv'​)->​start()->​save()->​run();​
 +
 +</​file>​
urapidflow/same_profile_diff_file.txt · Last modified: 2010/06/28 15:15 by unirgy