Details | Last modification | View Log | RSS feed
<?php
class ActivationcodeShell extends AppShell {
public $uses = array('ActivationCode');
public function main() {
$file = fopen("codes.csv","r");
while(! feof($file)) {
$row = fgetcsv($file);
//print_r($row[0]);
$this->ActivationCode->create();
$this->ActivationCode->save(array('code' => $row[0]));
}