Welcome Guest, Not a member yet? Register   Sign In
how to use model?
#8

[eluser]syntaxerror[/eluser]
hi,
how about returning more variables in a model.
e.g.
Code:
<?php
class Process_model extends Model{
    function Process_model()
        {
            parent::Model();
        }
    function compareBatch()
    {
        $kebase = "//asecasianas2/DS_Keying/STATS/KE-DIR/";
        $qcbase = "//asecasianas2/DS_Keying/STATS/QC-DIR/";
        $dir = $this->input->post('directory');
        $ke = directory_map($kebase.$dir, TRUE);
        $qc = directory_map($qcbase.$dir, TRUE);
        $kelist = count($ke) - 1;
        $kelist2 = $kelist + 1;
        $qclist = count($qc) - 1;
        $qclist2 = $qclist+ 1;
        $count_comp = strcmp($kelist2, $qclist2);
        $row_comp = strcmp($kelist,$qclist);
            for($x = 0; $x <= $qclist; $x++)
            {
                $file1 = ($kebase . $dir . $ke[$x]);
                $file2 = ($qcbase . $dir . $qc[$x]);
                $file1 = file($file1);
                $file2 = file($file2);
                $file2_count = count($file2);

            }
                
    }    
        
}

?&gt;
how can i return all my variables in the controller?

thanks


Messages In This Thread
how to use model? - by El Forum - 10-12-2008, 09:14 PM
how to use model? - by El Forum - 10-12-2008, 10:41 PM
how to use model? - by El Forum - 10-12-2008, 10:55 PM
how to use model? - by El Forum - 10-12-2008, 11:42 PM
how to use model? - by El Forum - 10-12-2008, 11:54 PM
how to use model? - by El Forum - 10-13-2008, 12:06 AM
how to use model? - by El Forum - 10-13-2008, 12:51 AM
how to use model? - by El Forum - 10-13-2008, 01:05 AM
how to use model? - by El Forum - 10-13-2008, 01:20 AM
how to use model? - by El Forum - 10-13-2008, 01:28 AM
how to use model? - by El Forum - 10-13-2008, 02:10 AM
how to use model? - by El Forum - 10-13-2008, 02:43 AM
how to use model? - by El Forum - 10-13-2008, 02:53 AM
how to use model? - by El Forum - 10-13-2008, 02:59 AM
how to use model? - by El Forum - 10-13-2008, 03:04 AM
how to use model? - by El Forum - 10-13-2008, 03:08 AM
how to use model? - by El Forum - 10-13-2008, 03:17 AM
how to use model? - by El Forum - 10-13-2008, 03:34 AM
how to use model? - by El Forum - 10-13-2008, 03:43 AM
how to use model? - by El Forum - 10-13-2008, 03:49 AM
how to use model? - by El Forum - 10-13-2008, 03:54 AM
how to use model? - by El Forum - 10-13-2008, 03:55 AM
how to use model? - by El Forum - 10-13-2008, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB